summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-12-19 07:16:25 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-12-19 07:16:25 +0000
commitdce6853568b164dc015339fc6078ebd75f67346a (patch)
treee9de8051bb2e9a708de15f895cd1229f26b4f0ff
parent26059b310e2e90a60873cba6a022a61e7999cab4 (diff)
downloadrsyslog-dce6853568b164dc015339fc6078ebd75f67346a.tar.gz
rsyslog-dce6853568b164dc015339fc6078ebd75f67346a.tar.xz
rsyslog-dce6853568b164dc015339fc6078ebd75f67346a.zip
cleaned up char/uchar issue
-rw-r--r--syslogd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/syslogd.c b/syslogd.c
index 6cf9d557..45ff32bb 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -3843,7 +3843,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;
@@ -3862,9 +3862,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 */