Changed the new code in delete_one() so that some compilers
authorWayne Davison <wayned@samba.org>
Sat, 12 Jun 2004 21:30:07 +0000 (21:30 +0000)
committerWayne Davison <wayned@samba.org>
Sat, 12 Jun 2004 21:30:07 +0000 (21:30 +0000)
don't complain about returning a value from a void function.

receiver.c

index f39a9e5..cd521a1 100644 (file)
@@ -60,8 +60,10 @@ static void delete_one(char *fn, int is_dir)
                }
        } else {
                if (do_rmdir(fn) != 0) {
-                       if (errno == ENOTDIR && keep_dirlinks)
-                               return delete_one(fn, 0);
+                       if (errno == ENOTDIR && keep_dirlinks) {
+                               delete_one(fn, 0);
+                               return;
+                       }
                        if (errno != ENOTEMPTY && errno != EEXIST) {
                                rsyserr(FERROR, errno,
                                        "delete_one: rmdir %s failed",