s3-prefork: Fix cast warning.
authorAndreas Schneider <asn@samba.org>
Wed, 20 Jul 2011 12:24:15 +0000 (14:24 +0200)
committerSimo Sorce <idra@samba.org>
Sun, 21 Aug 2011 13:05:02 +0000 (09:05 -0400)
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Simo Sorce <idra@samba.org>
source3/lib/server_prefork.c

index 5206c36e8d32bd69bcef9f9b1012d208afc6848e..a584df7a711d41eed1a95563676f43de3441e125 100644 (file)
@@ -237,8 +237,8 @@ struct prefork_oldest {
 /* sort in inverse order */
 static int prefork_sort_oldest(const void *ap, const void *bp)
 {
 /* 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;
 
        if (a->started == b->started) {
                return 0;