]> git.meshlink.io Git - catta/blobdiff - avahi-core/prioq-test.c
forgot to pull the publish_no_reverse change to the example.
[catta] / avahi-core / prioq-test.c
index 3d85b78b8de5e014a4c0379a5f119210dfc1dd06..6d0fd62f35314eeebdca339442ecebb268c45f35 100644 (file)
@@ -1,5 +1,3 @@
-/* $Id$ */
-
 /***
   This file is part of avahi.
 
@@ -32,8 +30,8 @@
 
 #include "prioq.h"
 
-#define POINTER_TO_INT(p) ((int) (p))
-#define INT_TO_POINTER(i) ((void*) (i))
+#define POINTER_TO_INT(p) ((int) (long) (p))
+#define INT_TO_POINTER(i) ((void*) (long) (i))
 
 static int compare_int(const void* a, const void* b) {
     int i = POINTER_TO_INT(a), j = POINTER_TO_INT(b);