summaryrefslogtreecommitdiffstats
path: root/tools/syslogd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-05-06 15:05:39 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-05-06 15:05:39 +0200
commite0a2745d3f84a2f22ffce029de14e38a6433b402 (patch)
tree7d18d01a3ee8a23d0f34ea2fd037e400911e794e /tools/syslogd.c
parent02795031a3021698baf857ae0c3af0ce38cd7cd4 (diff)
downloadrsyslog-e0a2745d3f84a2f22ffce029de14e38a6433b402.tar.gz
rsyslog-e0a2745d3f84a2f22ffce029de14e38a6433b402.tar.xz
rsyslog-e0a2745d3f84a2f22ffce029de14e38a6433b402.zip
some cleanup (gotten rid of some more plain chars)
Diffstat (limited to 'tools/syslogd.c')
-rw-r--r--tools/syslogd.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/tools/syslogd.c b/tools/syslogd.c
index 835a020d..99179e3b 100644
--- a/tools/syslogd.c
+++ b/tools/syslogd.c
@@ -598,10 +598,10 @@ void untty(void)
* I added an additional calling parameter to permit specifying the flow
* control capability of the source.
*/
-rsRetVal printline(char *hname, char *msg, int bParseHost, int flags, flowControl_t flowCtlType)
+rsRetVal printline(uchar *hname, uchar *msg, int bParseHost, int flags, flowControl_t flowCtlType)
{
DEFiRet;
- register char *p;
+ register uchar *p;
int pri;
msg_t *pMsg;
@@ -609,7 +609,7 @@ rsRetVal printline(char *hname, char *msg, int bParseHost, int flags, flowContro
*/
CHKiRet(msgConstruct(&pMsg));
MsgSetFlowControlType(pMsg, flowCtlType);
- MsgSetRawMsg(pMsg, msg);
+ MsgSetRawMsg(pMsg, (char*)msg);
pMsg->bParseHOSTNAME = bParseHost;
/* test for special codes */
@@ -637,15 +637,15 @@ rsRetVal printline(char *hname, char *msg, int bParseHost, int flags, flowContro
* being the local host). rgerhards 2004-11-16
*/
if(bParseHost == 0)
- MsgSetHOSTNAME(pMsg, hname);
- MsgSetRcvFrom(pMsg, hname);
+ MsgSetHOSTNAME(pMsg, (char*)hname);
+ MsgSetRcvFrom(pMsg, (char*)hname);
/* rgerhards 2004-11-19: well, well... we've now seen that we
* have the "hostname problem" also with the traditional Unix
* message. As we like to emulate it, we need to add the hostname
* to it.
*/
- if(MsgSetUxTradMsg(pMsg, p) != 0)
+ if(MsgSetUxTradMsg(pMsg, (char*)p) != 0)
ABORT_FINALIZE(RS_RET_ERR);
logmsg(pMsg, flags);
@@ -690,16 +690,16 @@ finalize_it:
* control capability of the source.
*/
rsRetVal
-parseAndSubmitMessage(char *hname, char *msg, int len, int bParseHost, int flags, flowControl_t flowCtlType)
+parseAndSubmitMessage(uchar *hname, uchar *msg, int len, int bParseHost, int flags, flowControl_t flowCtlType)
{
DEFiRet;
register int iMsg;
- char *pMsg;
- char *pData;
- char *pEnd;
- char tmpline[MAXLINE + 1];
+ uchar *pMsg;
+ uchar *pData;
+ uchar *pEnd;
+ uchar tmpline[MAXLINE + 1];
# ifdef USE_NETZIP
- char deflateBuf[MAXLINE + 1];
+ uchar deflateBuf[MAXLINE + 1];
uLongf iLenDefBuf;
# endif