From c9ef08772214f1eab545b7ca5e0cb5bdbf8dd6ce Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 23 Feb 2012 14:49:02 -0800 Subject: Fix const warnings. Autobuild-User: Jeremy Allison Autobuild-Date: Fri Feb 24 23:10:56 CET 2012 on sn-devel-104 --- source3/smbd/close.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/smbd/close.c b/source3/smbd/close.c index 1a123b49c8..34ce7858be 100644 --- a/source3/smbd/close.c +++ b/source3/smbd/close.c @@ -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); } -- cgit