From 0aea9d47490ff391ec5859dc8110041a143c8dae Mon Sep 17 00:00:00 2001 From: Tristan Riehs Date: Sun, 7 Jun 2026 15:16:47 +0200 Subject: Rewrite ftag_config_init --- src/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main.c') 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); -- cgit v1.2.3