From: Volker Lendecke Date: Mon, 23 Nov 2009 10:54:19 +0000 (+0100) Subject: s3: Move a variable declaration to its only use X-Git-Url: http://git.samba.org/samba.git/?p=gd%2Fsamba%2F.git;a=commitdiff_plain;h=e8ef799c4b6d8da0104b52ebbbf9d96d2b3a8fe7 s3: Move a variable declaration to its only use --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index e9e632a351f..f8e1927bd48 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 ){