git.samba.org
/
kai
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
minor cleanups
[kai/samba.git]
/
source
/
passdb
/
smbpass.c
diff --git
a/source/passdb/smbpass.c
b/source/passdb/smbpass.c
index 1f880881bc5aa0990659b05e3ef2bcf9b0c40555..cd4a7ccf6643c819f592635604aaf00dfac10b41 100644
(file)
--- a/
source/passdb/smbpass.c
+++ b/
source/passdb/smbpass.c
@@
-58,8
+58,7
@@
do_pw_lock(int fd, int waitsecs, int type)
return ret;
}
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)
{
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;
}
return fd;
}
-int
-pw_file_unlock(int fd)
+int pw_file_unlock(int fd)
{
do_pw_lock(fd, 5, F_UNLCK);
return close(fd);
{
do_pw_lock(fd, 5, F_UNLCK);
return close(fd);