diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-08-01 07:26:46 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-08-01 07:26:46 +0000 |
commit | 0eab6e11e94df082d6b7a791648dc367c2c16dc6 (patch) | |
tree | 96a6f14603f56bc9272a3b45ef8923ee1a692d23 /omusrmsg.c | |
parent | 4922cc646964e7a129b3cfab8873382425271664 (diff) | |
download | rsyslog-0eab6e11e94df082d6b7a791648dc367c2c16dc6.tar.gz rsyslog-0eab6e11e94df082d6b7a791648dc367c2c16dc6.tar.bz2 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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |