summaryrefslogtreecommitdiff
path: root/Userland/rm.cpp
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2020-08-10 23:48:37 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-12 20:40:59 +0200
commit0248ddc427c3e100226c733b9209c902312cdf73 (patch)
treeca2aeada63801b998e9def4e35ee0a16e0860b78 /Userland/rm.cpp
parent5574d45edabed5b5d7f1a29455bdd5c495a30ae8 (diff)
downloadserenity-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.cpp2
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) {