summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-02-23 14:49:02 -0800
committerJeremy Allison <jra@samba.org>2012-02-24 23:10:56 +0100
commitc9ef08772214f1eab545b7ca5e0cb5bdbf8dd6ce (patch)
treeeaadb1a2db611f02b03d7456f4314efa50f95ec2 /source3
parent0e6213b1aeb0243dc5f1e2d989a621a76dc621aa (diff)
downloadsamba-c9ef08772214f1eab545b7ca5e0cb5bdbf8dd6ce.tar.gz
samba-c9ef08772214f1eab545b7ca5e0cb5bdbf8dd6ce.tar.bz2
samba-c9ef08772214f1eab545b7ca5e0cb5bdbf8dd6ce.zip
Fix const warnings.
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Feb 24 23:10:56 CET 2012 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/close.c4
1 files 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);
}