summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-06-11 08:57:08 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-06-11 08:57:08 +0000
commitb08162acbae48d4dd347e21ed574f044e50a9e6f (patch)
tree7d1b526603e06ef6b24f32fd04f95f641ef34e4b
parentf87e084925dec6b82734cd2dc44695633b0c3ee5 (diff)
downloadrsyslog-b08162acbae48d4dd347e21ed574f044e50a9e6f.tar.gz
rsyslog-b08162acbae48d4dd347e21ed574f044e50a9e6f.tar.xz
rsyslog-b08162acbae48d4dd347e21ed574f044e50a9e6f.zip
fixed a compiler warning about strict aliasing
-rw-r--r--syslogd.c4
1 files 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;