apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yla...@apache.org
Subject svn commit: r1675644 - /apr/apr/trunk/test/testskiplist.c
Date Thu, 23 Apr 2015 15:39:41 GMT
Author: ylavic
Date: Thu Apr 23 15:39:41 2015
New Revision: 1675644

URL: http://svn.apache.org/r1675644
Log:
testskiplist: silence Sun compiler warning.

Modified:
    apr/apr/trunk/test/testskiplist.c

Modified: apr/apr/trunk/test/testskiplist.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testskiplist.c?rev=1675644&r1=1675643&r2=1675644&view=diff
==============================================================================
--- apr/apr/trunk/test/testskiplist.c (original)
+++ apr/apr/trunk/test/testskiplist.c Thu Apr 23 15:39:41 2015
@@ -51,7 +51,8 @@ static void skiplist_init(abts_case *tc,
 
     ABTS_INT_EQUAL(tc, APR_SUCCESS, apr_skiplist_init(&skiplist, p));
     ABTS_PTR_NOTNULL(tc, skiplist);
-    apr_skiplist_set_compare(skiplist, (void*)strcmp, (void*)strcmp);
+    apr_skiplist_set_compare(skiplist, (apr_skiplist_compare)strcmp,
+                                       (apr_skiplist_compare)strcmp);
 }
 
 static void skiplist_find(abts_case *tc, void *data)
@@ -260,7 +261,8 @@ static void skiplist_random_loop(abts_ca
     int i;
 
     ABTS_INT_EQUAL(tc, APR_SUCCESS, apr_skiplist_init(&sl, ptmp));
-    apr_skiplist_set_compare(sl, (void*)strcmp, (void*)strcmp);
+    apr_skiplist_set_compare(sl, (apr_skiplist_compare)strcmp,
+                                 (apr_skiplist_compare)strcmp);
     apr_skiplist_set_preheight(sl, 7);
     ABTS_INT_EQUAL(tc, 7, apr_skiplist_preheight(sl));
 



Mime
View raw message