summaryrefslogtreecommitdiffstats
path: root/tools/iminternal.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-02-16 11:46:56 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2011-02-16 11:46:56 +0100
commit772e0ae8460478e43caac55dfa3182dd4b58b52a (patch)
tree1f9da994dc7fe06c54dc6aa0123f996c713a88bd /tools/iminternal.c
parent49c2bc380c34c346dafffe5c5a4059fa2f604680 (diff)
downloadrsyslog-772e0ae8460478e43caac55dfa3182dd4b58b52a.tar.gz
rsyslog-772e0ae8460478e43caac55dfa3182dd4b58b52a.tar.xz
rsyslog-772e0ae8460478e43caac55dfa3182dd4b58b52a.zip
cleanup: no longer parameter in iminternal system removed
Diffstat (limited to 'tools/iminternal.c')
-rw-r--r--tools/iminternal.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/iminternal.c b/tools/iminternal.c
index bd1fa128..12534ba0 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 */