diff options
author | Michael Biebl <biebl@debian.org> | 2011-02-17 21:19:28 +0100 |
---|---|---|
committer | Michael Biebl <biebl@debian.org> | 2011-02-17 21:19:28 +0100 |
commit | 4d8f0c039c4fa44bb43d3cdbb0674cde8bb66de4 (patch) | |
tree | ed9a0691ad8b9ec5cabfe898c2a44dd4690fbe21 /tools/iminternal.c | |
parent | 537e74be114f1698f9ec825cf8ea497ffc0f17c5 (diff) | |
download | rsyslog-4d8f0c039c4fa44bb43d3cdbb0674cde8bb66de4.tar.gz |
Imported Upstream version 5.7.4upstream/5.7.4
Diffstat (limited to 'tools/iminternal.c')
-rw-r--r-- | tools/iminternal.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/iminternal.c b/tools/iminternal.c index bd1fa12..12534ba 100644 --- a/tools/iminternal.c +++ b/tools/iminternal.c @@ -89,7 +89,7 @@ finalize_it: * The interface of this function is modelled after syslogd/logmsg(), * for which it is an "replacement". */ -rsRetVal iminternalAddMsg(int pri, msg_t *pMsg) +rsRetVal iminternalAddMsg(msg_t *pMsg) { DEFiRet; iminternal_t *pThis; @@ -98,7 +98,6 @@ rsRetVal iminternalAddMsg(int pri, msg_t *pMsg) CHKiRet(iminternalConstruct(&pThis)); - pThis->pri = pri; pThis->pMsg = pMsg; CHKiRet(llAppend(&llMsgs, NULL, (void*) pThis)); @@ -118,7 +117,7 @@ finalize_it: * from the list and return it to the caller. The caller is * responsible for freeing the message! */ -rsRetVal iminternalRemoveMsg(int *pPri, msg_t **ppMsg) +rsRetVal iminternalRemoveMsg(msg_t **ppMsg) { DEFiRet; iminternal_t *pThis; @@ -128,7 +127,6 @@ rsRetVal iminternalRemoveMsg(int *pPri, msg_t **ppMsg) assert(ppMsg != NULL); CHKiRet(llGetNextElt(&llMsgs, &llCookie, (void*)&pThis)); - *pPri = pThis->pri; *ppMsg = pThis->pMsg; pThis->pMsg = NULL; /* we do no longer own it - important for destructor */ |