diff options
author | Andreas Schneider <asn@samba.org> | 2011-07-20 14:24:15 +0200 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2011-08-21 09:05:02 -0400 |
commit | 5169dff3807385f466ef6f2f4bd21a1dbbd8f95d (patch) | |
tree | fa5736742dba6df114747f04a2a176e3d0e7a645 /source3 | |
parent | e4b566d6cf7affd2d9fc916e203ad4a249d3e077 (diff) | |
download | samba-5169dff3807385f466ef6f2f4bd21a1dbbd8f95d.tar.gz samba-5169dff3807385f466ef6f2f4bd21a1dbbd8f95d.tar.bz2 samba-5169dff3807385f466ef6f2f4bd21a1dbbd8f95d.zip |
s3-prefork: Fix cast warning.
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Simo Sorce <idra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/server_prefork.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/server_prefork.c b/source3/lib/server_prefork.c index 5206c36e8d..a584df7a71 100644 --- a/source3/lib/server_prefork.c +++ b/source3/lib/server_prefork.c @@ -237,8 +237,8 @@ struct prefork_oldest { /* sort in inverse order */ static int prefork_sort_oldest(const void *ap, const void *bp) { - struct prefork_oldest *a = (struct prefork_oldest *)ap; - struct prefork_oldest *b = (struct prefork_oldest *)bp; + const struct prefork_oldest *a = (const struct prefork_oldest *)ap; + const struct prefork_oldest *b = (const struct prefork_oldest *)bp; if (a->started == b->started) { return 0; |