summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--syslogd.c6
1 files changed, 3 insertions, 3 deletions
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 */