summaryrefslogtreecommitdiffstats
path: root/src/pacman/util.c
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-01-07 10:42:48 +0100
committerAurelien Foret <aurelien@archlinux.org>2006-01-07 10:42:48 +0100
commitf3a4197e349ec7441f2b4dfe6e3010bbfe400164 (patch)
tree88352537a1dae2a182ea5cc792c25b4fd4cdb45e /src/pacman/util.c
parent6c3657b7022c7873fca38b30796e7659b7580b34 (diff)
downloadpacman-f3a4197e349ec7441f2b4dfe6e3010bbfe400164.tar.gz
pacman-f3a4197e349ec7441f2b4dfe6e3010bbfe400164.tar.xz
code cleanup (mainly removed line spaces at the beginning of lines by tabulations)
Diffstat (limited to 'src/pacman/util.c')
-rw-r--r--src/pacman/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/util.c b/src/pacman/util.c
index dd8dddab..a279e004 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -79,7 +79,6 @@ int rmrf(char *path)
int errflag = 0;
struct dirent *dp;
DIR *dirp;
- char name[PATH_MAX];
if(!unlink(path)) {
return(0);
@@ -102,6 +101,7 @@ int rmrf(char *path)
}
for(dp = readdir(dirp); dp != NULL; dp = readdir(dirp)) {
if(dp->d_ino) {
+ char name[PATH_MAX];
sprintf(name, "%s/%s", path, dp->d_name);
if(strcmp(dp->d_name, "..") && strcmp(dp->d_name, ".")) {
errflag += rmrf(name);