diff options
author | Michael Adam <obnox@samba.org> | 2008-01-07 21:47:53 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-01-07 21:47:56 +0100 |
commit | 26169410cd3fa90be5740a913f027802488eca8d (patch) | |
tree | c23d9767719a9048f31c81068a0ccf57988e7099 /source3/modules/vfs_default.c | |
parent | fa6d7b42f1c85004a7c7ece4822277e8e23f32f5 (diff) | |
download | samba-26169410cd3fa90be5740a913f027802488eca8d.tar.gz samba-26169410cd3fa90be5740a913f027802488eca8d.tar.xz samba-26169410cd3fa90be5740a913f027802488eca8d.zip |
Remove redundant parameter fd from SMB_VFS_LINUX_SETLEASE().
Michael
(This used to be commit 8880eb82f16d561a4023ec8426f8ea35c579a7a6)
Diffstat (limited to 'source3/modules/vfs_default.c')
-rw-r--r-- | source3/modules/vfs_default.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index 96161ad273..712aae9fca 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -830,7 +830,7 @@ static bool vfswrap_getlock(vfs_handle_struct *handle, files_struct *fsp, int fd return result; } -static int vfswrap_linux_setlease(vfs_handle_struct *handle, files_struct *fsp, int fd, +static int vfswrap_linux_setlease(vfs_handle_struct *handle, files_struct *fsp, int leasetype) { int result = -1; @@ -839,11 +839,11 @@ static int vfswrap_linux_setlease(vfs_handle_struct *handle, files_struct *fsp, #ifdef HAVE_KERNEL_OPLOCKS_LINUX /* first set the signal handler */ - if(linux_set_lease_sighandler(fd) == -1) { + if(linux_set_lease_sighandler(fsp->fh->fd) == -1) { return -1; } - result = linux_setlease(fd, leasetype); + result = linux_setlease(fsp->fh->fd, leasetype); #else errno = ENOSYS; #endif |