From 07ca17ac183819511717aa2d73e1d938f83cc4c6 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 13 Apr 2009 18:32:33 +0000 Subject: [PATCH] * Rewrote sort_msglist_cmp() without compiler warnings. --- citadel/room_ops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/citadel/room_ops.c b/citadel/room_ops.c index e1d501a1c..3303979f6 100644 --- a/citadel/room_ops.c +++ b/citadel/room_ops.c @@ -496,9 +496,9 @@ void delete_msglist(struct ctdlroom *whichroom) /* * Message pointer compare function for sort_msglist() */ -int sort_msglist_cmp(long *m1, long *m2) { - if (*m1 > *m2) return(1); - if (*m1 < *m2) return(-1); +int sort_msglist_cmp(const void *m1, const void *m2) { + if ((*(const long *)m1) > (*(const long *)m2)) return(1); + if ((*(const long *)m1) < (*(const long *)m2)) return(-1); return(0); } -- 2.30.2