diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-12-19 07:16:25 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-12-19 07:16:25 +0000 |
commit | dce6853568b164dc015339fc6078ebd75f67346a (patch) | |
tree | e9de8051bb2e9a708de15f895cd1229f26b4f0ff /syslogd.c | |
parent | 26059b310e2e90a60873cba6a022a61e7999cab4 (diff) | |
download | rsyslog-dce6853568b164dc015339fc6078ebd75f67346a.tar.gz rsyslog-dce6853568b164dc015339fc6078ebd75f67346a.tar.xz rsyslog-dce6853568b164dc015339fc6078ebd75f67346a.zip |
cleaned up char/uchar issue
Diffstat (limited to 'syslogd.c')
-rw-r--r-- | syslogd.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 */ |