1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

minor cleanups

This commit is contained in:
Andrew Tridgell 0001-01-01 00:00:00 +00:00
parent fabd4230f1
commit 7c8fd43b4e
3 changed files with 5 additions and 5 deletions

View 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 */

View 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);
}

View 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);