summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2004-02-13 14:48:57 +0000
committerJim McDonough <jmcd@samba.org>2004-02-13 14:48:57 +0000
commit4c5152b8fe2637ab067111ab23753f683ad692ac (patch)
tree5ec099a47cc459f7b94308879cba5ffe48661df3 /source3
parentb60ba1de77a5bb012117e78e57188b12f1bd25f0 (diff)
downloadsamba-4c5152b8fe2637ab067111ab23753f683ad692ac.tar.gz
samba-4c5152b8fe2637ab067111ab23753f683ad692ac.tar.bz2
samba-4c5152b8fe2637ab067111ab23753f683ad692ac.zip
Fix a few comments/formatting issues to make it more in line with
3.0 and reduce diff output. (This used to be commit 306c021000d36f13b3740839b62df60986e4e112)
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/pdb_tdb.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c
index 2460c97a1b..f54463e158 100644
--- a/source3/passdb/pdb_tdb.c
+++ b/source3/passdb/pdb_tdb.c
@@ -37,7 +37,7 @@ static int tdbsam_debug_level = DBGC_ALL;
#endif
-#define TDBSAM_VERSION 1 /* Most recent TDBSAM version */
+#define TDBSAM_VERSION 1 /* Most recent TDBSAM version */
#define TDBSAM_VERSION_STRING "INFO/version"
#define PASSDB_FILE_NAME "passdb.tdb"
#define USERPREFIX "USER_"
@@ -183,8 +183,11 @@ static TDB_CONTEXT * tdbsam_tdbopen (const char *name, int open_flags)
tdbsamver_t version;
/* Try to open tdb passwd */
- if (!(pdb_tdb = tdb_open_log(name, 0, TDB_DEFAULT, open_flags, 0600)))
+ if (!(pdb_tdb = tdb_open_log(name, 0, TDB_DEFAULT,
+ open_flags, 0600))) {
+ DEBUG(0, ("Unable to open/create TDB passwd\n"));
return NULL;
+ }
/* Check the version */
version = (tdbsamver_t) tdb_fetch_int32(pdb_tdb,
@@ -230,7 +233,7 @@ static TDB_CONTEXT * tdbsam_tdbopen (const char *name, int open_flags)
}
/*****************************************************************************
- Utility functions to open the tdb sam database
+ Utility functions to close the tdb sam database
****************************************************************************/
static void tdbsam_tdbclose ( struct tdbsam_privates *state )