From 20cc710920d286f99f71bf0cf4ca95a7d17935dc Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 10 Sep 2013 19:42:06 +0200 Subject: smbd: Move "struct byte_range_lock" definition to brlock.c --- source3/include/locking.h | 10 +--------- source3/locking/brlock.c | 10 ++++++++++ 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/source3/include/locking.h b/source3/include/locking.h index 627908ce74..97c138aead 100644 --- a/source3/include/locking.h +++ b/source3/include/locking.h @@ -47,15 +47,7 @@ struct files_struct; #include "lib/file_id.h" -struct byte_range_lock { - struct files_struct *fsp; - unsigned int num_locks; - bool modified; - bool read_only; - struct file_id key; - struct lock_struct *lock_data; - struct db_record *record; -}; +struct byte_range_lock; /* Internal structure in brlock.tdb. The data in brlock records is an unsorted linear array of these diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c index cc5d7a8ae0..1f4c716391 100644 --- a/source3/locking/brlock.c +++ b/source3/locking/brlock.c @@ -43,6 +43,16 @@ static struct db_context *brlock_db; +struct byte_range_lock { + struct files_struct *fsp; + unsigned int num_locks; + bool modified; + bool read_only; + struct file_id key; + struct lock_struct *lock_data; + struct db_record *record; +}; + /**************************************************************************** Debug info at level 10 for lock struct. ****************************************************************************/ -- cgit