Avoid discarding const
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 12 Jul 2007 06:18:00 +0000 (09:18 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 12 Jul 2007 06:18:00 +0000 (09:18 +0300)
rpmdb/tagname.c

index 2b6fbe6..8cb21e1 100644 (file)
@@ -12,8 +12,8 @@
 static int tagcmp(const void * a, const void * b)
         /*@*/
 {
-    const headerTagTableEntry aptr = a;
-    const headerTagTableEntry bptr = b;
+    const headerTagTableEntry aptr = (const headerTagTableEntry) a;
+    const headerTagTableEntry bptr = (const headerTagTableEntry) b;
     return (aptr->val - bptr->val);
 }