use bb_xbind/bb_xlisten
[oweals/busybox.git] / coreutils / rmdir.c
index 3f6037170d80d1c037073b0131521902a9f1c696..cc21f5df98a5127618351c6a0a205f9ecfa08b3d 100644 (file)
@@ -28,7 +28,7 @@
 #include <libgen.h>
 #include "busybox.h"
 
-extern int rmdir_main(int argc, char **argv)
+int rmdir_main(int argc, char **argv)
 {
        int status = EXIT_SUCCESS;
        int flags;
@@ -59,14 +59,14 @@ extern int rmdir_main(int argc, char **argv)
                                /* Path is now just the parent component.  Note that dirname
                                 * returns "." if there are no parents.  We must distinguish
                                 * this from the case of the original path starting with '.'.
-                 */
+                */
                                if (do_dot || (*path != '.') || path[1]) {
                                        continue;
                                }
                        }
                        break;
                } while (1);
-               
+
        } while (*++argv);
 
        return status;