summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-01-07 16:38:23 +0100
committerMichael Adam <obnox@samba.org>2008-01-07 16:38:23 +0100
commitedd30e716fb5133b269ef82358e95d187a107870 (patch)
treee6697e60ec79a68b7a3761018a158aa749e9deea /source3/locking
parent299d24dbc1d2d8eb0b78800eb5a8643b10c80274 (diff)
downloadsamba-edd30e716fb5133b269ef82358e95d187a107870.tar.gz
samba-edd30e716fb5133b269ef82358e95d187a107870.tar.bz2
samba-edd30e716fb5133b269ef82358e95d187a107870.zip
Remove redundant parameter fd from SMB_VFS_LOCK().
Michael (This used to be commit 4f3ab2c406072e0b43581057e7e785e8ad454cfa)
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/posix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/locking/posix.c b/source3/locking/posix.c
index 207ee57ce1..9f84e7380f 100644
--- a/source3/locking/posix.c
+++ b/source3/locking/posix.c
@@ -188,7 +188,7 @@ static bool posix_fcntl_lock(files_struct *fsp, int op, SMB_OFF_T offset, SMB_OF
DEBUG(8,("posix_fcntl_lock %d %d %.0f %.0f %d\n",fsp->fh->fd,op,(double)offset,(double)count,type));
- ret = SMB_VFS_LOCK(fsp,fsp->fh->fd,op,offset,count,type);
+ ret = SMB_VFS_LOCK(fsp, op, offset, count, type);
if (!ret && ((errno == EFBIG) || (errno == ENOLCK) || (errno == EINVAL))) {
@@ -212,7 +212,7 @@ static bool posix_fcntl_lock(files_struct *fsp, int op, SMB_OFF_T offset, SMB_OF
DEBUG(0,("Count greater than 31 bits - retrying with 31 bit truncated length.\n"));
errno = 0;
count &= 0x7fffffff;
- ret = SMB_VFS_LOCK(fsp,fsp->fh->fd,op,offset,count,type);
+ ret = SMB_VFS_LOCK(fsp, op, offset, count, type);
}
}