diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2020-08-10 23:48:37 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-12 20:40:59 +0200 |
commit | 0248ddc427c3e100226c733b9209c902312cdf73 (patch) | |
tree | ca2aeada63801b998e9def4e35ee0a16e0860b78 /Userland/rm.cpp | |
parent | 5574d45edabed5b5d7f1a29455bdd5c495a30ae8 (diff) | |
download | serenity-0248ddc427c3e100226c733b9209c902312cdf73.zip |
Userland: Mark compilation-unit-only functions as static
This enables a nice warning in case a function becomes dead code.
Diffstat (limited to 'Userland/rm.cpp')
-rw-r--r-- | Userland/rm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/rm.cpp b/Userland/rm.cpp index 2ef96f063e..7cd575f198 100644 --- a/Userland/rm.cpp +++ b/Userland/rm.cpp @@ -35,7 +35,7 @@ #include <sys/stat.h> #include <unistd.h> -int remove(bool recursive, bool force, String path) +static int remove(bool recursive, bool force, String path) { struct stat path_stat; if (lstat(path.characters(), &path_stat) < 0) { |