From b46f03aaf92603fb82a01426834e76d64c14644b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 17 Jul 2022 13:14:40 +0100 Subject: [PATCH] prefork: Make socket finding etc. stuff static Signed-off-by: Ian Jackson --- cprogs/prefork.c | 11 +++++------ cprogs/prefork.h | 9 ++------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/cprogs/prefork.c b/cprogs/prefork.c index 095dd44..437923f 100644 --- a/cprogs/prefork.c +++ b/cprogs/prefork.c @@ -2,14 +2,13 @@ #include "prefork.h" -const char *interp, *ident; - +const char *interp, *ident, *script, *socket_path, *lock_path; +bool logging; struct sha256_ctx identsc; -uid_t us; -const char *run_base, *script, *socket_path, *lock_path; -const char *run_base_mkdir_p; -bool logging; +static uid_t us; +static const char *run_base; +static const char *run_base_mkdir_p; void common_diee(const char *m) { diee("%s", m); } void common_die (const char *m) { die ("%s", m); } diff --git a/cprogs/prefork.h b/cprogs/prefork.h index 1d69afc..19c3bc1 100644 --- a/cprogs/prefork.h +++ b/cprogs/prefork.h @@ -34,17 +34,12 @@ #define MINHEXHASH 33 -extern const char *interp, *ident; - +extern const char *interp, *ident, *script, *socket_path, *lock_path; +extern bool logging; extern struct sha256_ctx identsc; extern const char our_name[]; -extern uid_t us; -extern const char *run_base, *script, *socket_path, *lock_path; -extern const char *run_base_mkdir_p; -extern bool logging; - bool find_run_base_var_run(void); void find_socket_path(void); -- 2.30.2