summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-04-10 23:29:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:57 -0500
commit423352b90e5e3bb89db96ae43798db395ef818ee (patch)
tree2ca61aad6b5d0f97dc7816a3df8548f417f2dceb /source3/locking
parentcc8ba23e8d503c41ccd316f5b1d64d927cece2b8 (diff)
downloadsamba-423352b90e5e3bb89db96ae43798db395ef818ee.tar.gz
samba-423352b90e5e3bb89db96ae43798db395ef818ee.tar.bz2
samba-423352b90e5e3bb89db96ae43798db395ef818ee.zip
r15026: Fix warning until POSIX locking finished.
Jeremy. (This used to be commit 15f39a4c720e9645f941742310b6c6d7d7fc96d5)
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/brlock.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c
index b95bb895cc..5d64e66448 100644
--- a/source3/locking/brlock.c
+++ b/source3/locking/brlock.c
@@ -601,7 +601,6 @@ static NTSTATUS brl_lock_posix(struct byte_range_lock *br_lck,
unsigned int i, count;
struct lock_struct *locks = (struct lock_struct *)br_lck->lock_data;
struct lock_struct *tp;
- files_struct *fsp = br_lck->fsp;
BOOL lock_was_added = False;
/* No zero-zero locks for POSIX. */
@@ -664,7 +663,7 @@ static NTSTATUS brl_lock_posix(struct byte_range_lock *br_lck,
/* FIXME - this call doesn't work correctly yet for POSIX locks... */
if ((plock->lock_type != PENDING_LOCK) && lp_posix_locking(SNUM(fsp->conn))) {
-
+ files_struct *fsp = br_lck->fsp;
if (!set_posix_lock(fsp, plock->start, plock->size, plock->lock_type, POSIX_LOCK)) {
if (errno == EACCES || errno == EAGAIN) {