minor cleanups
authorAndrew Tridgell <tridge@samba.org>
Wed, 24 Jul 1996 06:14:51 +0000 (06:14 +0000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 24 Jul 1996 06:14:51 +0000 (06:14 +0000)
source/include/proto.h
source/param/params.c
source/passdb/smbpass.c

index 1f3a251fec518d991f2d443d131c1ddefbc44a7b..faddbc6a4927cd9edb69a06c0bdb60b760cf8550 100644 (file)
@@ -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  */
index 8ff3d59d280c54665d115bf272a388a72bb7cbae..8030e4ab58345abf5d040f501de73901c4e4a23b 100644 (file)
@@ -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);
       }
index 1f880881bc5aa0990659b05e3ef2bcf9b0c40555..cd4a7ccf6643c819f592635604aaf00dfac10b41 100644 (file)
@@ -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);