]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Minor cleanup
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 6 Jun 2010 08:08:45 +0000 (10:08 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 6 Jun 2010 08:08:45 +0000 (10:08 +0200)
util.c

diff --git a/util.c b/util.c
index 37fe401072148aa3a01994632a007595babfd603..5232fa4ae51cf3cea3180556587d9df39bd34581 100644 (file)
--- 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;