aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorTristan Riehs <tristan.riehs@inria.fr>2026-06-07 15:16:47 +0200
committerTristan Riehs <tristan.riehs@inria.fr>2026-06-07 15:16:47 +0200
commit0aea9d47490ff391ec5859dc8110041a143c8dae (patch)
tree7be3250096d22804c98426fece786608ed100a69 /src/main.c
parent9f0b0355e8836a79dc1031f18744ff1945991981 (diff)
Rewrite ftag_config_init
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index a84cb4b..1b0a7d3 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1085,18 +1085,18 @@ int main(int argc, char *argv[])
able to only transfer the new files, maybe using rsync. */
};
const int toplevel_command_count = sizeof(toplevel_commands) / sizeof(struct ftag_command);
- char* config_file = NULL;
+ const char *config_file = NULL;
const char *optstring = "c:h";
int opt;
while ((opt = getopt(argc, argv, optstring)) != -1) {
switch (opt) {
- case 'h':
- ftag_help(0, NULL);
- exit(EXIT_SUCCESS);
case 'c':
config_file = optarg;
break;
+ case 'h':
+ ftag_help(0, NULL);
+ exit(EXIT_SUCCESS);
case'?':
default:
ftag_help(0, NULL);