summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_default.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-01-07 17:14:20 +0100
committerMichael Adam <obnox@samba.org>2008-01-07 17:14:20 +0100
commit327cc04da587fa54f28dafb00267fde79b858349 (patch)
tree9c9d6b6eea2c518560ff4023d12aec908c74a1f8 /source3/modules/vfs_default.c
parentf6cac02f00da72885e8a6d0104d099d84ac0ff6e (diff)
downloadsamba-327cc04da587fa54f28dafb00267fde79b858349.tar.gz
samba-327cc04da587fa54f28dafb00267fde79b858349.tar.bz2
samba-327cc04da587fa54f28dafb00267fde79b858349.zip
Remove redundant parameter fd from SMB_VFS_KERNEL_FLOCK().
Michael (This used to be commit 195c519377c2fdc655e25760b52bc0694b8dda81)
Diffstat (limited to 'source3/modules/vfs_default.c')
-rw-r--r--source3/modules/vfs_default.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c
index 0076f8d1b4..96161ad273 100644
--- a/source3/modules/vfs_default.c
+++ b/source3/modules/vfs_default.c
@@ -811,11 +811,11 @@ static bool vfswrap_lock(vfs_handle_struct *handle, files_struct *fsp, int op, S
return result;
}
-static int vfswrap_kernel_flock(vfs_handle_struct *handle, files_struct *fsp, int fd,
+static int vfswrap_kernel_flock(vfs_handle_struct *handle, files_struct *fsp,
uint32 share_mode)
{
START_PROFILE(syscall_kernel_flock);
- kernel_flock(fd, share_mode);
+ kernel_flock(fsp->fh->fd, share_mode);
END_PROFILE(syscall_kernel_flock);
return 0;
}