[pisa-src] r1457 - trunk/libpisa/hitlist.c

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Fri, 30 Oct 2009 12:27:05 +0100

Author: tjansen
Date: Fri Oct 30 12:27:05 2009
New Revision: 1457

Log:
Fixed -Wcast-qual warnings:

libpisa/hitlist.c: In function ‘pisa_hitlist_entry_compare’:
libpisa/hitlist.c:61: warning: cast discards qualifiers from pointer target type
libpisa/hitlist.c:62: warning: cast discards qualifiers from pointer target type

Modified:
   trunk/libpisa/hitlist.c

Modified: trunk/libpisa/hitlist.c
==============================================================================
--- trunk/libpisa/hitlist.c     Fri Oct 30 12:23:53 2009        (r1456)
+++ trunk/libpisa/hitlist.c     Fri Oct 30 12:27:05 2009        (r1457)
@@ -58,8 +58,8 @@
  */
 static int pisa_hitlist_entry_compare(const void *p1, const void *p2)
 {
-       pisa_hitlist_entry *e1 = (pisa_hitlist_entry *) p1;
-       pisa_hitlist_entry *e2 = (pisa_hitlist_entry *) p2;
+       const pisa_hitlist_entry *e1 = (const pisa_hitlist_entry *) p1;
+       const pisa_hitlist_entry *e2 = (const pisa_hitlist_entry *) p2;
 
        return pisa_ipv6_cmp(&e1->hit, &e2->hit);
 }

Other related posts:

  • » [pisa-src] r1457 - trunk/libpisa/hitlist.c - Thomas Jansen