summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-03-20 14:26:42 +0100
committerMichael Adam <obnox@samba.org>2008-03-20 15:01:52 +0100
commit4bac0e505fa99f9843fc742e4807a1e2c4cf8b20 (patch)
treed2c2d4d341403f9f97b0cb524d3fbe9840d27ab9
parent13b894b01e404f1ed5f5c68b4e47d782f07dd7cc (diff)
downloadsamba-4bac0e505fa99f9843fc742e4807a1e2c4cf8b20.tar.gz
samba-4bac0e505fa99f9843fc742e4807a1e2c4cf8b20.tar.bz2
samba-4bac0e505fa99f9843fc742e4807a1e2c4cf8b20.zip
registry: reformat regdb_init() slightly, breaking long lines.
Michael (This used to be commit 11da885f1e82e7a08fac2bc0ec1515694caa6340)
-rw-r--r--source3/registry/reg_backend_db.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index a86edf0ff9..23b59aa284 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -318,21 +318,24 @@ bool init_registry_data(void)
Open the registry database
***********************************************************************/
-bool regdb_init( void )
+bool regdb_init(void)
{
const char *vstring = "INFO/version";
uint32 vers_id;
- if ( regdb ) {
- DEBUG(10,("regdb_init: incrementing refcount (%d)\n", regdb_refcount));
+ if (regdb) {
+ DEBUG(10, ("regdb_init: incrementing refcount (%d)\n",
+ regdb_refcount));
regdb_refcount++;
return true;
}
- regdb = db_open(NULL, state_path("registry.tdb"), 0, REG_TDB_FLAGS, O_RDWR, 0600);
+ regdb = db_open(NULL, state_path("registry.tdb"), 0, REG_TDB_FLAGS,
+ O_RDWR, 0600);
if (!regdb) {
- regdb = db_open(NULL, state_path("registry.tdb"), 0, REG_TDB_FLAGS, O_RDWR|O_CREAT, 0600);
- if ( !regdb ) {
+ regdb = db_open(NULL, state_path("registry.tdb"), 0,
+ REG_TDB_FLAGS, O_RDWR|O_CREAT, 0600);
+ if (!regdb) {
DEBUG(0,("regdb_init: Failed to open registry %s (%s)\n",
state_path("registry.tdb"), strerror(errno) ));
return false;