From 6b4487e173fc6d6d6e08395eeb40c8992ab72838 Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Fri, 13 Sep 2024 21:50:00 +0200 Subject: [PATCH] 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 --- lib/run_part.c | 2 +- lib/run_part.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/run_part.c b/lib/run_part.c index 4ac58567..c5d4bd9e 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 6422134c..889d281c 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 */