registry: reformat regdb_init() slightly, breaking long lines.
authorMichael Adam <obnox@samba.org>
Thu, 20 Mar 2008 13:26:42 +0000 (14:26 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 20 Mar 2008 14:01:52 +0000 (15:01 +0100)
Michael

source/registry/reg_backend_db.c

index a86edf0ff9a20fc1120d479482a61aa33dc852f4..23b59aa284cfa1350851318153818328d8ba206b 100644 (file)
@@ -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;