From d1652d9bde1337e90cec7b69f0355e7565c1a93a Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 4 Jul 2023 12:06:55 +0200 Subject: appease clang-format --- src/client_main.c | 2 ++ src/const.h | 4 ++-- src/server_main.c | 2 ++ src/worker_main.c | 2 ++ 4 files changed, 8 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/client_main.c b/src/client_main.c index 0dbdcc6..0a68a55 100644 --- a/src/client_main.c +++ b/src/client_main.c @@ -33,6 +33,7 @@ static int parse_settings(struct settings *settings, int argc, char *argv[]) *settings = default_settings(); + /* clang-format off */ static struct option long_options[] = { {"help", no_argument, 0, 'h'}, {"version", no_argument, 0, 'V'}, @@ -41,6 +42,7 @@ static int parse_settings(struct settings *settings, int argc, char *argv[]) {"port", required_argument, 0, 'p'}, {0, 0, 0, 0}, }; + /* clang-format on */ while ((opt = getopt_long(argc, argv, "hVvH:p:", long_options, &longind)) != -1) { switch (opt) { diff --git a/src/const.h b/src/const.h index 94723c6..0c0c5fc 100644 --- a/src/const.h +++ b/src/const.h @@ -15,8 +15,8 @@ extern const char *default_host; extern const char *default_port; extern const char *default_sqlite_path; -#define CMD_RUN "run" +#define CMD_RUN "run" #define CMD_NEW_WORKER "new-worker" -#define CMD_COMPLETE "complete" +#define CMD_COMPLETE "complete" #endif diff --git a/src/server_main.c b/src/server_main.c index 65541ff..e682f6e 100644 --- a/src/server_main.c +++ b/src/server_main.c @@ -33,6 +33,7 @@ static int parse_settings(struct settings *settings, int argc, char *argv[]) *settings = default_settings(); + /* clang-format off */ static struct option long_options[] = { {"help", no_argument, 0, 'h'}, {"version", no_argument, 0, 'V'}, @@ -41,6 +42,7 @@ static int parse_settings(struct settings *settings, int argc, char *argv[]) {"sqlite", required_argument, 0, 's'}, {0, 0, 0, 0}, }; + /* clang-format on */ while ((opt = getopt_long(argc, argv, "hVvp:s:", long_options, &longind)) != -1) { switch (opt) { diff --git a/src/worker_main.c b/src/worker_main.c index e8468f8..2c06aa8 100644 --- a/src/worker_main.c +++ b/src/worker_main.c @@ -33,6 +33,7 @@ static int parse_settings(struct settings *settings, int argc, char *argv[]) *settings = default_settings(); + /* clang-format off */ static struct option long_options[] = { {"help", no_argument, 0, 'h'}, {"version", no_argument, 0, 'V'}, @@ -41,6 +42,7 @@ static int parse_settings(struct settings *settings, int argc, char *argv[]) {"port", required_argument, 0, 'p'}, {0, 0, 0, 0}, }; + /* clang-format on */ while ((opt = getopt_long(argc, argv, "hVvH:p:", long_options, &longind)) != -1) { switch (opt) { -- cgit v1.2.3