Revert style breakage.

The breakage is a result of editing and incomplete reversal.
This commit is contained in:
Johannes Sixt
2007-08-09 22:33:20 +02:00
parent 733bd67d92
commit 37ebf62c74

View File

@@ -25,10 +25,8 @@ static void prune_dir(int i, DIR *dir, char *pathname, int len, int opts)
memcpy(pathname + len, de->d_name, 38);
if (opts & DRY_RUN)
printf("rm -f %s\n", pathname);
else {
if (unlink(pathname) < 0)
error("unable to unlink %s", pathname);
}
else if (unlink(pathname) < 0)
error("unable to unlink %s", pathname);
}
pathname[len] = 0;
rmdir(pathname);