aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ci.c6
-rw-r--r--src/client_main.c18
-rw-r--r--src/server_main.c18
-rw-r--r--src/worker_main.c18
4 files changed, 26 insertions, 34 deletions
diff --git a/src/ci.c b/src/ci.c
index 4692b19..32035a1 100644
--- a/src/ci.c
+++ b/src/ci.c
@@ -17,8 +17,7 @@
#include <stddef.h>
#include <stdlib.h>
-/* clang-format off */
-static const char *ci_scripts[] = {
+static const char* ci_scripts[] = {
"./.ci.sh",
"./.ci",
"./ci.sh",
@@ -26,12 +25,11 @@ static const char *ci_scripts[] = {
NULL,
};
-static const char *ci_env[] = {
+static const char* ci_env[] = {
"CI=y",
"CIMPLE=y",
NULL,
};
-/* clang-format on */
static int ci_run_script(const char* script, struct process_output* result) {
const char* args[] = {script, NULL};
diff --git a/src/client_main.c b/src/client_main.c
index 6419157..87161b4 100644
--- a/src/client_main.c
+++ b/src/client_main.c
@@ -33,16 +33,14 @@ 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'},
- {"verbose", no_argument, 0, 'v'},
- {"host", required_argument, 0, 'H'},
- {"port", required_argument, 0, 'p'},
- {0, 0, 0, 0},
- };
- /* clang-format on */
+ static struct option long_options[] = {
+ {"help", no_argument, 0, 'h'},
+ {"version", no_argument, 0, 'V'},
+ {"verbose", no_argument, 0, 'v'},
+ {"host", required_argument, 0, 'H'},
+ {"port", required_argument, 0, 'p'},
+ {0, 0, 0, 0},
+ };
while ((opt = getopt_long(argc, argv, "hVvH:p:", long_options, &longind)) != -1) {
switch (opt) {
diff --git a/src/server_main.c b/src/server_main.c
index 14bc3f5..b4c2491 100644
--- a/src/server_main.c
+++ b/src/server_main.c
@@ -30,16 +30,14 @@ 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'},
- {"verbose", no_argument, 0, 'v'},
- {"port", required_argument, 0, 'p'},
- {"sqlite", required_argument, 0, 's'},
- {0, 0, 0, 0},
- };
- /* clang-format on */
+ static struct option long_options[] = {
+ {"help", no_argument, 0, 'h'},
+ {"version", no_argument, 0, 'V'},
+ {"verbose", no_argument, 0, 'v'},
+ {"port", required_argument, 0, 'p'},
+ {"sqlite", required_argument, 0, 's'},
+ {0, 0, 0, 0},
+ };
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 7d076c7..6562b7f 100644
--- a/src/worker_main.c
+++ b/src/worker_main.c
@@ -30,16 +30,14 @@ 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'},
- {"verbose", no_argument, 0, 'v'},
- {"host", required_argument, 0, 'H'},
- {"port", required_argument, 0, 'p'},
- {0, 0, 0, 0},
- };
- /* clang-format on */
+ static struct option long_options[] = {
+ {"help", no_argument, 0, 'h'},
+ {"version", no_argument, 0, 'V'},
+ {"verbose", no_argument, 0, 'v'},
+ {"host", required_argument, 0, 'H'},
+ {"port", required_argument, 0, 'p'},
+ {0, 0, 0, 0},
+ };
while ((opt = getopt_long(argc, argv, "hVvH:p:", long_options, &longind)) != -1) {
switch (opt) {