]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
lib/run_part: Reduce visibility
authorTobias Stoeckmann <tobias@stoeckmann.org>
Fri, 13 Sep 2024 19:50:00 +0000 (21:50 +0200)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Wed, 18 Sep 2024 12:52:05 +0000 (14:52 +0200)
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 <tobias@stoeckmann.org>
lib/run_part.c
lib/run_part.h

index 4ac58567a94a2eb65881ac5ae65c2353c28857cf..c5d4bd9e9fb44142b5a19b9a2962b32a33b9946c 100644 (file)
@@ -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;
index 6422134cc72eb861be833268c847ed2801aff9de..889d281c49bfc5e30a224ed1175355abc69c4654 100644 (file)
@@ -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 */