From dee95717d729f136f8e6bb577927e2645bdf07dc Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 11 Sep 2007 09:10:45 +0000 Subject: cleaned up compiler warnings --- linkedlist.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'linkedlist.c') diff --git a/linkedlist.c b/linkedlist.c index 7ebadf5a..b9239b48 100644 --- a/linkedlist.c +++ b/linkedlist.c @@ -169,13 +169,16 @@ rsRetVal llGetNextElt(linkedList_t *pThis, linkedListCookie_t *ppElt, void **ppU /* return the key of an Elt + * rgerhards, 2007-09-11: note that ppDatea is actually a void**, + * but I need to make it a void* to avoid lots of compiler warnings. + * It will be converted later down in the code. */ -rsRetVal llGetKey(llElt_t *pThis, void **ppData) +rsRetVal llGetKey(llElt_t *pThis, void *ppData) { assert(pThis != NULL); assert(ppData != NULL); - *ppData = pThis->pKey; + *(void**) ppData = pThis->pKey; return RS_RET_OK; } -- cgit