From b08162acbae48d4dd347e21ed574f044e50a9e6f Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 11 Jun 2007 08:57:08 +0000 Subject: fixed a compiler warning about strict aliasing --- syslogd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syslogd.c b/syslogd.c index ba0c53fe..938f7c3a 100644 --- a/syslogd.c +++ b/syslogd.c @@ -1942,7 +1942,7 @@ static int srSLMGParseInt32(unsigned char** ppsz) * Parse a TIMESTAMP-3339. * updates the parse pointer position. */ -static int srSLMGParseTIMESTAMP3339(struct syslogTime *pTime, unsigned char** ppszTS) +static int srSLMGParseTIMESTAMP3339(struct syslogTime *pTime, char** ppszTS) { unsigned char *pszTS = *ppszTS; @@ -4742,7 +4742,7 @@ static int parseRFCSyslogMsg(struct msg *pMsg, int flags) */ /* TIMESTAMP */ - if(srSLMGParseTIMESTAMP3339(&(pMsg->tTIMESTAMP), (unsigned char **) &p2parse) == FALSE) { + if(srSLMGParseTIMESTAMP3339(&(pMsg->tTIMESTAMP), &p2parse) == FALSE) { dprintf("no TIMESTAMP detected!\n"); bContParse = 0; flags |= ADDDATE; -- cgit v1.2.3