From 0fe778098d216ebe5b34c21cfb9be1982ceef8e8 Mon Sep 17 00:00:00 2001 From: Michael Graff Date: Tue, 31 Aug 1999 20:55:26 +0000 Subject: [PATCH] Remove one compiler's warning by casting both sides to (void *) in a comparison. Lame, but there you have it. --- lib/isc/include/isc/list.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/isc/include/isc/list.h b/lib/isc/include/isc/list.h index d9660088b2..a799c2ae48 100644 --- a/lib/isc/include/isc/list.h +++ b/lib/isc/include/isc/list.h @@ -28,7 +28,7 @@ (elt)->link.prev = (void *)(-1); \ (elt)->link.next = (void *)(-1); \ } while (0) -#define ISC_LINK_LINKED(elt, link) ((elt)->link.prev != (void *)(-1)) +#define ISC_LINK_LINKED(elt, link) ((void *)((elt)->link.prev) != (void *)(-1)) #define ISC_LIST_HEAD(list) ((list).head) #define ISC_LIST_TAIL(list) ((list).tail)