From 6aa9ef2726e42c4ae062b55be4d5cc015767d997 Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Thu, 23 Nov 2023 12:22:02 +0100 Subject: Fix code style --- CommandLine.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'CommandLine.c') diff --git a/CommandLine.c b/CommandLine.c index effaca48..230b721c 100644 --- a/CommandLine.c +++ b/CommandLine.c @@ -138,6 +138,7 @@ static CommandLineStatus parseArguments(int argc, char** argv, CommandLineSettin while ((opt = getopt_long(argc, argv, "hVMCs:td:n:u::Up:F:H::", long_opts, &opti))) { if (opt == EOF) break; + switch (opt) { case 'h': printHelpFlag(program); @@ -192,8 +193,7 @@ static CommandLineStatus parseArguments(int argc, char** argv, CommandLineSettin return STATUS_ERROR_EXIT; } break; - case 'u': - { + case 'u': { const char* username = optarg; if (!username && optind < argc && argv[optind] != NULL && (argv[optind][0] != '\0' && argv[optind][0] != '-')) { @@ -246,11 +246,10 @@ static CommandLineStatus parseArguments(int argc, char** argv, CommandLineSettin break; } - case 'F': { + case 'F': assert(optarg); free_and_xStrdup(&flags->commFilter, optarg); break; - } case 'H': { const char* delay = optarg; if (!delay && optind < argc && argv[optind] != NULL && -- cgit v1.2.3