summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-06-12 12:13:15 +0200
committerStefan Metzmacher <metze@samba.org>2012-06-22 15:16:49 +0200
commit89b2eb1d06f543388fce9239bcd209fc367d0cad (patch)
tree3d591a4a33f59bbdd1ed876dfa17c955ec90795c
parent6658a2f6ef0e1bd10aa0b4913bb51636fa968586 (diff)
downloadsamba-89b2eb1d06f543388fce9239bcd209fc367d0cad.tar.gz
samba-89b2eb1d06f543388fce9239bcd209fc367d0cad.tar.bz2
samba-89b2eb1d06f543388fce9239bcd209fc367d0cad.zip
s3: Make reduce_windows_lock_ref_count static
Signed-off-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--source3/locking/posix.c3
-rw-r--r--source3/locking/proto.h1
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/locking/posix.c b/source3/locking/posix.c
index f4886512c8..a548027d76 100644
--- a/source3/locking/posix.c
+++ b/source3/locking/posix.c
@@ -424,7 +424,8 @@ static void increment_windows_lock_ref_count(files_struct *fsp)
Bulk delete - subtract as many locks as we've just deleted.
****************************************************************************/
-void reduce_windows_lock_ref_count(files_struct *fsp, unsigned int dcount)
+static void reduce_windows_lock_ref_count(files_struct *fsp,
+ unsigned int dcount)
{
struct lock_ref_count_key tmp;
int32_t lock_ref_count = 0;
diff --git a/source3/locking/proto.h b/source3/locking/proto.h
index f6a6f2ee12..74cf32379f 100644
--- a/source3/locking/proto.h
+++ b/source3/locking/proto.h
@@ -207,7 +207,6 @@ bool is_posix_locked(files_struct *fsp,
enum brl_flavour lock_flav);
bool posix_locking_init(bool read_only);
bool posix_locking_end(void);
-void reduce_windows_lock_ref_count(files_struct *fsp, unsigned int dcount);
int fd_close_posix(struct files_struct *fsp);
bool set_posix_lock_windows_flavour(files_struct *fsp,
uint64_t u_offset,