summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
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);
}