[PATCH] small fix to tdb/tdbutil.c (Samba4)
Erlend Aasland
erlend-a at ux.his.no
Fri Dec 5 00:22:26 GMT 2003
Hi,
While reading through the Samba4 code, I did some small fixes to this
file. Only some small trivial things. Patch is against current CVS.
Regards,
Erlend Aasland
diff -urN samba4/source/tdb/tdbutil.c test/source/tdb/tdbutil.c
--- samba4/source/tdb/tdbutil.c Wed Aug 13 01:53:07 2003
+++ test/source/tdb/tdbutil.c Fri Dec 5 00:19:53 2003
@@ -591,17 +591,11 @@
TDB_CONTEXT *tdb_open_log(const char *name, int hash_size, int tdb_flags,
int open_flags, mode_t mode)
{
- TDB_CONTEXT *tdb;
-
if (!lp_use_mmap())
tdb_flags |= TDB_NOMMAP;
- tdb = tdb_open_ex(name, hash_size, tdb_flags,
+ return tdb_open_ex(name, hash_size, tdb_flags,
open_flags, mode, tdb_log);
- if (!tdb)
- return NULL;
-
- return tdb;
}
@@ -665,7 +659,7 @@
return list;
-};
+}
/**
@@ -681,7 +675,5 @@
next_node = node->next;
SAFE_FREE(node);
node = next_node;
- };
-};
-
-
+ }
+}
More information about the samba-technical
mailing list