diff options
author | Andrew Tridgell <tridge@samba.org> | 1996-07-24 06:14:51 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1996-07-24 06:14:51 +0000 |
commit | 7c8fd43b4e78f439406c3bb4478adf99ae17172f (patch) | |
tree | 54fc8e8edb75fae7d94f502eff34bd67cbb0b658 /source/passdb | |
parent | fabd4230f17726743a0fde0a37ce3c09a3dec8a3 (diff) | |
download | samba-7c8fd43b4e78f439406c3bb4478adf99ae17172f.tar.gz samba-7c8fd43b4e78f439406c3bb4478adf99ae17172f.tar.xz samba-7c8fd43b4e78f439406c3bb4478adf99ae17172f.zip |
minor cleanups
Diffstat (limited to 'source/passdb')
-rw-r--r-- | source/passdb/smbpass.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/passdb/smbpass.c b/source/passdb/smbpass.c index 1f880881bc5..cd4a7ccf664 100644 --- 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; } -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); |