smbd: Apply some const to share_modes_identical
authorVolker Lendecke <vl@samba.org>
Tue, 3 Sep 2013 14:40:35 +0000 (14:40 +0000)
committerMichael Adam <obnox@samba.org>
Fri, 6 Sep 2013 11:34:06 +0000 (13:34 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/locking/locking.c

index 1567f8ffcda1ad3062cd1c884a0ed74ddf78e945..5343ba462df7788d314a41ded5f94eece6b77ecb 100644 (file)
@@ -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