From 0248ddc427c3e100226c733b9209c902312cdf73 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Mon, 10 Aug 2020 23:48:37 +0200 Subject: Userland: Mark compilation-unit-only functions as static This enables a nice warning in case a function becomes dead code. --- Userland/rm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/rm.cpp') 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 #include -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) { -- cgit v1.2.3