ash: deal with some TODOs (mostly trivial)
[oweals/busybox.git] / libbb / remove_file.c
index 3edc91dae54d741f1919ece7e39d3340bbf7e4ef..8b14f07c936f4b1ca96ee2dfbbc826bca64343d8 100644 (file)
@@ -11,7 +11,7 @@
 
 /* Used from NOFORK applets. Must not allocate anything */
 
-int remove_file(const char *path, int flags)
+int FAST_FUNC remove_file(const char *path, int flags)
 {
        struct stat path_stat;
 
@@ -82,8 +82,10 @@ int remove_file(const char *path, int flags)
        }
 
        /* !ISDIR */
-       if ((!(flags & FILEUTILS_FORCE) && access(path, W_OK) < 0
-                       && !S_ISLNK(path_stat.st_mode) && isatty(0))
+       if ((!(flags & FILEUTILS_FORCE)
+            && access(path, W_OK) < 0
+            && !S_ISLNK(path_stat.st_mode)
+            && isatty(0))
         || (flags & FILEUTILS_INTERACTIVE)
        ) {
                fprintf(stderr, "%s: remove '%s'? ", applet_name, path);