1
0

Compacted switch to check a result of parse_argv().

This commit is contained in:
Alexander Andreev 2024-03-30 03:19:09 +04:00
parent 4611322ee9
commit 098e5c4faa
Signed by: Arav
GPG Key ID: 25969B23DCB5CA34

View File

@ -47,15 +47,9 @@ int main(int argc, const char **argv) {
result = parse_argv(argc, argv, &opts); result = parse_argv(argc, argv, &opts);
switch (result) { switch (result) {
case -1: case -1: usage(); return 1;
usage(); case -2: version(); return 0;
return 1; case -3: usage(); return 0;
case -2:
version();
return 0;
case -3:
usage();
return 0;
} }
if (sodium_init() == -1) { if (sodium_init() == -1) {