summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-11-23 11:54:19 +0100
committerVolker Lendecke <vl@samba.org>2009-11-23 14:22:54 +0100
commite8ef799c4b6d8da0104b52ebbbf9d96d2b3a8fe7 (patch)
tree2a097dfecfdeb587ec5c3386ea93eafaac097664 /source3
parent401ba9c9cf357d6b420a7401fc1a915871d96f8d (diff)
downloadsamba-e8ef799c4b6d8da0104b52ebbbf9d96d2b3a8fe7.tar.gz
samba-e8ef799c4b6d8da0104b52ebbbf9d96d2b3a8fe7.tar.bz2
samba-e8ef799c4b6d8da0104b52ebbbf9d96d2b3a8fe7.zip
s3: Move a variable declaration to its only use
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index e9e632a351..f8e1927bd4 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -1470,7 +1470,6 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
struct share_mode_lock *lck = NULL;
uint32 open_access_mask = access_mask;
NTSTATUS status;
- int ret_flock;
char *parent_dir;
ZERO_STRUCT(id);
@@ -2092,6 +2091,7 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
note that GPFS supports it as well - jmcd */
if (fsp->fh->fd != -1) {
+ int ret_flock;
ret_flock = SMB_VFS_KERNEL_FLOCK(fsp, share_access, access_mask);
if(ret_flock == -1 ){