From 6b680bb89c05f4c67e78b927cab4231b647406d7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 24 Jul 1996 06:14:51 +0000 Subject: [PATCH] minor cleanups (This used to be commit 7c8fd43b4e78f439406c3bb4478adf99ae17172f) --- source3/include/proto.h | 2 ++ source3/param/params.c | 2 +- source3/passdb/smbpass.c | 6 ++---- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source3/include/proto.h b/source3/include/proto.h index 1f3a251fec5..faddbc6a492 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -677,6 +677,8 @@ void SMBNTencrypt(uchar *passwd, uchar *c8, uchar *p24); /*The following definitions come from smbpass.c */ +int pw_file_lock(char *name, int type, int secs); +int pw_file_unlock(int fd); struct smb_passwd *get_smbpwnam(char *name); /*The following definitions come from smbpasswd.c */ diff --git a/source3/param/params.c b/source3/param/params.c index 8ff3d59d280..8030e4ab583 100644 --- a/source3/param/params.c +++ b/source3/param/params.c @@ -313,7 +313,7 @@ BOOL pm_process(char *pszFileName,BOOL (*sfunc)(char *),BOOL (*pfunc)(char *,cha DEBUG(0,( "Unable to open configuration file \"%s\"!\n", pszParmFile)); else { - DEBUG(2,( "Processing configuration file \"%s\"\n", pszParmFile)); + DEBUG(3,("Processing configuration file \"%s\"\n", pszParmFile)); bRetval = enumerate_sections(fileIn, sfunc, pfunc); fclose(fileIn); } diff --git a/source3/passdb/smbpass.c b/source3/passdb/smbpass.c index 1f880881bc5..cd4a7ccf664 100644 --- a/source3/passdb/smbpass.c +++ b/source3/passdb/smbpass.c @@ -58,8 +58,7 @@ do_pw_lock(int fd, int waitsecs, int type) return ret; } -int -pw_file_lock(char *name, int type, int secs) +int pw_file_lock(char *name, int type, int secs) { int fd = open(name, O_RDWR | O_CREAT, 0666); if (fd < 0) @@ -71,8 +70,7 @@ pw_file_lock(char *name, int type, int secs) return fd; } -int -pw_file_unlock(int fd) +int pw_file_unlock(int fd) { do_pw_lock(fd, 5, F_UNLCK); return close(fd); -- 2.34.1