From aee0f2ccf7a10b5344b00711b0d294648f15bd10 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 3 Sep 2013 14:40:35 +0000 Subject: [PATCH] smbd: Apply some const to share_modes_identical Signed-off-by: Volker Lendecke Reviewed-by: Michael Adam --- source3/locking/locking.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/locking/locking.c b/source3/locking/locking.c index 1567f8ffcd..5343ba462d 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -733,8 +733,8 @@ void set_share_mode(struct share_mode_lock *lck, files_struct *fsp, not automatically a logic error if they are identical. JRA.) ********************************************************************/ -static bool share_modes_identical(struct share_mode_entry *e1, - struct share_mode_entry *e2) +static bool share_modes_identical(const struct share_mode_entry *e1, + const struct share_mode_entry *e2) { /* We used to check for e1->share_access == e2->share_access here as well as the other fields but 2 different DOS or FCB opens -- 2.34.1