[glib] gqsort: Quiet a compiler warning for qsort_r



commit 98365dff73d8ecc8a02b7dfedce87e6fc28f4e39
Author: Colin Walters <walters verbum org>
Date:   Thu Mar 31 17:07:07 2011 -0400

    gqsort: Quiet a compiler warning for qsort_r

 glib/gqsort.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/gqsort.c b/glib/gqsort.c
index e2a5a2e..03b2db9 100644
--- a/glib/gqsort.c
+++ b/glib/gqsort.c
@@ -63,7 +63,7 @@ g_qsort_with_data (gconstpointer    pbase,
                    GCompareDataFunc compare_func,
                    gpointer         user_data)
 {
-  qsort_r (pbase, total_elems, size, compare_func, user_data);
+  qsort_r ((gpointer)pbase, total_elems, size, compare_func, user_data);
 }
 
 #else



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]