]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fix const warnings.
authorJeremy Allison <jra@samba.org>
Thu, 23 Feb 2012 22:49:02 +0000 (14:49 -0800)
committerJeremy Allison <jra@samba.org>
Fri, 24 Feb 2012 22:10:56 +0000 (23:10 +0100)
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Feb 24 23:10:56 CET 2012 on sn-devel-104

source3/smbd/close.c

index 1a123b49c8ac21ae70926873e6285285eaac5eb4..34ce7858be4b858467221c84b4c89952088f103d 100644 (file)
@@ -158,8 +158,8 @@ static NTSTATUS close_filestruct(files_struct *fsp)
 
 static int compare_share_mode_times(const void *p1, const void *p2)
 {
-       struct share_mode_entry *s1 = (struct share_mode_entry *)p1;
-       struct share_mode_entry *s2 = (struct share_mode_entry *)p2;
+       const struct share_mode_entry *s1 = (const struct share_mode_entry *)p1;
+       const struct share_mode_entry *s2 = (const struct share_mode_entry *)p2;
        return timeval_compare(&s1->time, &s2->time);
 }