summaryrefslogtreecommitdiffstats
path: root/linkedlist.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-09-11 09:10:45 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-09-11 09:10:45 +0000
commitdee95717d729f136f8e6bb577927e2645bdf07dc (patch)
treef580c0691755794abb81647fc8e7e4620592806e /linkedlist.c
parente79199816d67fe2e8a93aedf84dc0b8f7652521b (diff)
downloadrsyslog-dee95717d729f136f8e6bb577927e2645bdf07dc.tar.gz
rsyslog-dee95717d729f136f8e6bb577927e2645bdf07dc.tar.xz
rsyslog-dee95717d729f136f8e6bb577927e2645bdf07dc.zip
cleaned up compiler warnings
Diffstat (limited to 'linkedlist.c')
-rw-r--r--linkedlist.c7
1 files changed, 5 insertions, 2 deletions
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;
}