From c42e1eff145ddb25a371fdcce97301b702f1822d Mon Sep 17 00:00:00 2001 From: Kubat <mael.martin31@gmail.com> Date: Sun, 14 Jun 2020 22:15:18 +0200 Subject: [PATCH] Small renamings --- inc/lektor/cmd.h | 2 +- inc/lektor/thread.h | 1 - src/cmd.c | 4 ++-- src/main/server.c | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/inc/lektor/cmd.h b/inc/lektor/cmd.h index 365a8759..23baa17b 100644 --- a/inc/lektor/cmd.h +++ b/inc/lektor/cmd.h @@ -26,4 +26,4 @@ noreturn void lkt_cmd_parse(struct lkt_cmd_opt *opts, int argc, const char **arg in case of errors. */ extern const char *executable_name; -noreturn void help__(void); +noreturn void print_help(void); diff --git a/inc/lektor/thread.h b/inc/lektor/thread.h index d1fb59eb..56fe2cdf 100644 --- a/inc/lektor/thread.h +++ b/inc/lektor/thread.h @@ -23,7 +23,6 @@ struct poller_thread_arg { void *args; }; - /* Create a new thread. Returns 0 on success, a non zero value on error. */ int poller_new(struct poller_thread *th, void *(*func)(struct poller_thread_arg *), void *args); diff --git a/src/cmd.c b/src/cmd.c index 4f19b195..3edfaa23 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -13,7 +13,7 @@ const char *executable_name = NULL; extern const char *man_executable_path; noreturn void -help__(void) +print_help(void) { if (!executable_name) exit(EXIT_FAILURE); @@ -71,7 +71,7 @@ not_found: exit(EXIT_FAILURE); help: - help__(); + print_help(); not_exclusive: LOG_ERROR("COMMAND", "Failed to determine option, '%s' not exclusive", diff --git a/src/main/server.c b/src/main/server.c index eb9054ad..0742684c 100644 --- a/src/main/server.c +++ b/src/main/server.c @@ -54,7 +54,7 @@ main(int argc, char *argv[]) break; case 'h': default: - help__(); + print_help(); exit(EXIT_SUCCESS); } } -- GitLab