Revision: 146
Author: nyaochi
Date: 2006-07-29 09:12:42 -0700 (Sat, 29 Jul 2006)
ViewCVS: http://svn.sourceforge.net/pmplib/?rev=146&view=rev
Log Message:
-----------
Reduce another warning, (all warnings are now gone).
Modified Paths:
--------------
trunk/lib/pmp_iriverplus2/ip2db_idx.c
Modified: trunk/lib/pmp_iriverplus2/ip2db_idx.c
===================================================================
--- trunk/lib/pmp_iriverplus2/ip2db_idx.c 2006-07-29 16:05:24 UTC (rev 145)
+++ trunk/lib/pmp_iriverplus2/ip2db_idx.c 2006-07-29 16:12:42 UTC (rev 146)
@@ -45,6 +45,7 @@
static uint32_t nums_children[] = {
0, 0, 0, 127, 42, 42, 42, 42, 42, 25, 25, 18, 25, 84, 84, 84, 84,
};
+ typedef int (*qsort_comp_t)(const void *, const void *);
if (!sortitems) {
free(idxkeys);
@@ -78,7 +79,7 @@
sortitems,
num_records,
sizeof(sortitem_t),
- idxexp->comp
+ (qsort_comp_t)idxexp->comp
);
/* Convert record_t elements into idxkey elements. */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|