summaryrefslogtreecommitdiffstats
path: root/omusrmsg.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-08-01 07:26:46 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-08-01 07:26:46 +0000
commit0eab6e11e94df082d6b7a791648dc367c2c16dc6 (patch)
tree96a6f14603f56bc9272a3b45ef8923ee1a692d23 /omusrmsg.c
parent4922cc646964e7a129b3cfab8873382425271664 (diff)
downloadrsyslog-0eab6e11e94df082d6b7a791648dc367c2c16dc6.tar.gz
rsyslog-0eab6e11e94df082d6b7a791648dc367c2c16dc6.tar.xz
rsyslog-0eab6e11e94df082d6b7a791648dc367c2c16dc6.zip
- loading default values as done yesterday *is* clean (I've just reviewed
the code again) - moved omfile-specifc global variables (for cfsysline settings) from syslogd.c to omfile.c
Diffstat (limited to 'omusrmsg.c')
-rw-r--r--omusrmsg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/omusrmsg.c b/omusrmsg.c
index 8ee2f770..7183014a 100644
--- a/omusrmsg.c
+++ b/omusrmsg.c
@@ -149,7 +149,7 @@ void endutent(void)
* Adjust the size of a variable to prevent a buffer overflow
* should _PATH_DEV ever contain something different than "/dev/".
*/
-static void wallmsg(uchar* pMsg, instanceData *pData)
+static srRetVal wallmsg(uchar* pMsg, instanceData *pData)
{
char p[sizeof(_PATH_DEV) + UNAMESZ];
@@ -162,7 +162,7 @@ static void wallmsg(uchar* pMsg, instanceData *pData)
assert(pMsg != NULL);
if (reenter++)
- return;
+ return RS_RET_OK;
/* open the user login file */
setutent();
@@ -241,14 +241,14 @@ static void wallmsg(uchar* pMsg, instanceData *pData)
/* close the user login file */
endutent();
reenter = 0;
+ return RS_RET_OK;
}
BEGINdoAction
CODESTARTdoAction
dprintf("\n");
- /* TODO: change wallmsg so that it returns iRet */
- wallmsg(ppString[0], pData);
+ iRet = wallmsg(ppString[0], pData);
ENDdoAction