From: Tobias Stoeckmann Date: Fri, 13 Sep 2024 19:50:00 +0000 (+0200) Subject: lib/run_part: Reduce visibility X-Git-Tag: 4.17.0-rc1~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b4487e173fc6d6d6e08395eeb40c8992ab72838;p=thirdparty%2Fshadow.git lib/run_part: Reduce visibility The run_part function is only used in run_part.c itself, so no need to expose it to other files. Signed-off-by: Tobias Stoeckmann --- diff --git a/lib/run_part.c b/lib/run_part.c index 4ac58567a..c5d4bd9e9 100644 --- a/lib/run_part.c +++ b/lib/run_part.c @@ -15,7 +15,7 @@ #include "shadowlog_internal.h" -int run_part (char *script_path, const char *name, const char *action) +static int run_part (char *script_path, const char *name, const char *action) { pid_t pid; int wait_status; diff --git a/lib/run_part.h b/lib/run_part.h index 6422134cc..889d281c4 100644 --- a/lib/run_part.h +++ b/lib/run_part.h @@ -1,7 +1,6 @@ #ifndef _RUN_PART_H #define _RUN_PART_H -int run_part (char *script_path, const char *name, const char *action); int run_parts (const char *directory, const char *name, const char *action); #endif /* _RUN_PART_H */