From 62fdbd8546739f5a538a2404b58c7055e17da493 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sat, 9 Dec 2006 02:45:19 +0000 Subject: Make things a little clearer --- common/config-parser.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'common') diff --git a/common/config-parser.c b/common/config-parser.c index c59d071..f73d488 100644 --- a/common/config-parser.c +++ b/common/config-parser.c @@ -243,7 +243,7 @@ parse_dir_internal(const char* subdir, void* data) { char path[MAXPATHLEN]; struct dirent* dire; - struct stat buf; + struct stat st; char* memory; DIR* dir; int r; @@ -272,15 +272,15 @@ parse_dir_internal(const char* subdir, void* data) /* for non BSD compliant filesystem: stat() only if dirent->d_type is unknown */ if(dire->d_type == DT_UNKNOWN) { - if(stat(path, &buf) < 0) + if(stat(path, &st) < 0) { - errmsg(NULL, data, "couldn't stat directory: %s", path); + errmsg(NULL, data, "couldn't stat path: %s", path); return -1; } - if(S_ISREG(buf.st_mode)) + if(S_ISREG(st.st_mode)) dire->d_type = DT_REG; - else if(S_ISDIR(buf.st_mode)) + else if(S_ISDIR(st.st_mode)) dire->d_type = DT_DIR; else continue; -- cgit v1.2.3