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 | 6b680bb89c05f4c67e78b927cab4231b647406d7 (patch) | |
tree | 7f3deb45529bf0fca138fde07fb550a81509c996 /source3/passdb | |
parent | 1924f08d8404d5e71bee93449ea9b5edd791f473 (diff) | |
download | samba-6b680bb89c05f4c67e78b927cab4231b647406d7.tar.gz samba-6b680bb89c05f4c67e78b927cab4231b647406d7.tar.bz2 samba-6b680bb89c05f4c67e78b927cab4231b647406d7.zip |
minor cleanups
(This used to be commit 7c8fd43b4e78f439406c3bb4478adf99ae17172f)
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/smbpass.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/passdb/smbpass.c b/source3/passdb/smbpass.c index 1f880881bc..cd4a7ccf66 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); |