summaryrefslogtreecommitdiffstats
path: root/source3/locking
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-01-07 22:18:50 +0100
committerMichael Adam <obnox@samba.org>2008-01-07 22:18:50 +0100
commitf7bf4cb3f17b5356b93c4ec89c300ad5dc20d2bc (patch)
tree53ca6f6d1ebbb7a9d3e3f9027cd8aac09e078910 /source3/locking
parent26169410cd3fa90be5740a913f027802488eca8d (diff)
downloadsamba-f7bf4cb3f17b5356b93c4ec89c300ad5dc20d2bc.tar.gz
samba-f7bf4cb3f17b5356b93c4ec89c300ad5dc20d2bc.tar.xz
samba-f7bf4cb3f17b5356b93c4ec89c300ad5dc20d2bc.zip
Remove redundant parameter fd from SMB_VFS_GETLOCK().
Michael (This used to be commit ee5a20becdcdb20d7012732b324c6938fab44f67)
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 9f84e7380f..1b88c472b0 100644
--- a/source3/locking/posix.c
+++ b/source3/locking/posix.c
@@ -233,7 +233,7 @@ static bool posix_fcntl_getlock(files_struct *fsp, SMB_OFF_T *poffset, SMB_OFF_T
DEBUG(8,("posix_fcntl_getlock %d %.0f %.0f %d\n",
fsp->fh->fd,(double)*poffset,(double)*pcount,*ptype));
- ret = SMB_VFS_GETLOCK(fsp,fsp->fh->fd,poffset,pcount,ptype,&pid);
+ ret = SMB_VFS_GETLOCK(fsp, poffset, pcount, ptype, &pid);
if (!ret && ((errno == EFBIG) || (errno == ENOLCK) || (errno == EINVAL))) {
@@ -257,7 +257,7 @@ static bool posix_fcntl_getlock(files_struct *fsp, SMB_OFF_T *poffset, SMB_OFF_T
DEBUG(0,("Count greater than 31 bits - retrying with 31 bit truncated length.\n"));
errno = 0;
*pcount &= 0x7fffffff;
- ret = SMB_VFS_GETLOCK(fsp,fsp->fh->fd,poffset,pcount,ptype,&pid);
+ ret = SMB_VFS_GETLOCK(fsp,poffset,pcount,ptype,&pid);
}
}