From 4ac79a47100fc36bcea21d60b2cf123aa32f7b86 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Sun, 6 Jun 2010 10:08:45 +0200 Subject: [PATCH] Minor cleanup --- util.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; -- 2.47.3