Compacted switch to check a result of parse_argv().
This commit is contained in:
parent
4611322ee9
commit
098e5c4faa
12
src/main.c
12
src/main.c
@ -47,15 +47,9 @@ int main(int argc, const char **argv) {
|
||||
|
||||
result = parse_argv(argc, argv, &opts);
|
||||
switch (result) {
|
||||
case -1:
|
||||
usage();
|
||||
return 1;
|
||||
case -2:
|
||||
version();
|
||||
return 0;
|
||||
case -3:
|
||||
usage();
|
||||
return 0;
|
||||
case -1: usage(); return 1;
|
||||
case -2: version(); return 0;
|
||||
case -3: usage(); return 0;
|
||||
}
|
||||
|
||||
if (sodium_init() == -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user