From 423352b90e5e3bb89db96ae43798db395ef818ee Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 10 Apr 2006 23:29:47 +0000 Subject: r15026: Fix warning until POSIX locking finished. Jeremy. (This used to be commit 15f39a4c720e9645f941742310b6c6d7d7fc96d5) --- source3/locking/brlock.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/locking') 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) { -- cgit