From: Joel Rosdahl Date: Sun, 6 Jun 2010 08:08:45 +0000 (+0200) Subject: Minor cleanup X-Git-Tag: v3.0~55 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ac79a47100fc36bcea21d60b2cf123aa32f7b86;p=thirdparty%2Fccache.git Minor cleanup --- diff --git a/util.c b/util.c index 37fe40107..5232fa4ae 100644 --- a/util.c +++ b/util.c @@ -562,8 +562,7 @@ void x_asprintf2(char **ptr, const char *format, ...) } /* - revsusive directory traversal - used for cleanup - fn() is called on all files/dirs in the tree + * Recursive directory traversal. fn() is called on all entries in the tree. */ void traverse(const char *dir, void (*fn)(const char *, struct stat *)) { @@ -577,8 +576,8 @@ void traverse(const char *dir, void (*fn)(const char *, struct stat *)) char *fname; struct stat st; - if (strcmp(de->d_name,".") == 0) continue; - if (strcmp(de->d_name,"..") == 0) continue; + if (strcmp(de->d_name, ".") == 0) continue; + if (strcmp(de->d_name, "..") == 0) continue; if (strlen(de->d_name) == 0) continue;