From 83da22c61ec3a3cb3911112591b22aa7d4d037b8 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 19 Dec 2007 07:18:02 +0000 Subject: cleaned up char/uchar issue --- syslogd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'syslogd.c') diff --git a/syslogd.c b/syslogd.c index e7bb6ed1..c0284c83 100644 --- a/syslogd.c +++ b/syslogd.c @@ -3726,7 +3726,7 @@ static rsRetVal doIncludeLine(uchar **pp, __attribute__((unused)) void* pVal) { DEFiRet; char pattern[MAXFNAME]; - char *cfgFile; + uchar *cfgFile; glob_t cfgFiles; size_t i = 0; struct stat fileInfo; @@ -3745,9 +3745,9 @@ static rsRetVal doIncludeLine(uchar **pp, __attribute__((unused)) void* pVal) glob(pattern, GLOB_MARK, NULL, &cfgFiles); for(i = 0; i < cfgFiles.gl_pathc; i++) { - cfgFile = cfgFiles.gl_pathv[i]; + cfgFile = (uchar*) cfgFiles.gl_pathv[i]; - if(stat(cfgFile, &fileInfo) != 0) + if(stat((char*) cfgFile, &fileInfo) != 0) continue; /* continue with the next file if we can't stat() the file */ if(S_ISREG(fileInfo.st_mode)) { /* config file */ -- cgit v1.2.3