Strictly adhere to ANSI-C standard

This commit is contained in:
Bert Münnich
2011-10-13 16:50:06 +02:00
parent a09b20c5e6
commit 4383a651c7
8 changed files with 26 additions and 35 deletions

2
util.c
View File

@ -272,7 +272,7 @@ char* r_readdir(r_dir_t *rdir) {
while (true) {
if (rdir->dir != NULL && (dentry = readdir(rdir->dir)) != NULL) {
if (streq(dentry->d_name, ".") || streq(dentry->d_name, ".."))
if (STREQ(dentry->d_name, ".") || STREQ(dentry->d_name, ".."))
continue;
len = strlen(rdir->name) + strlen(dentry->d_name) + 2;