diff options
author | David Robillard <d@drobilla.net> | 2020-12-31 14:07:31 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-31 14:07:31 +0100 |
commit | 7a51f0b8e95d29b5e053db97bf72094e847ee7ef (patch) | |
tree | 388ce4b62ee033777125370be4105c5b8aa8b2df /utils | |
parent | a5a72832c05ba2894d90def0b74128a93dcca937 (diff) | |
download | lilv-7a51f0b8e95d29b5e053db97bf72094e847ee7ef.tar.gz lilv-7a51f0b8e95d29b5e053db97bf72094e847ee7ef.tar.bz2 lilv-7a51f0b8e95d29b5e053db97bf72094e847ee7ef.zip |
Avoid "else" after "return"
Diffstat (limited to 'utils')
-rw-r--r-- | utils/lv2apply.c | 8 | ||||
-rw-r--r-- | utils/lv2bench.c | 8 | ||||
-rw-r--r-- | utils/lv2info.c | 8 |
3 files changed, 18 insertions, 6 deletions
diff --git a/utils/lv2apply.c b/utils/lv2apply.c index 96fcf91..1d11c50 100644 --- a/utils/lv2apply.c +++ b/utils/lv2apply.c @@ -243,10 +243,14 @@ main(int argc, char** argv) free(self.params); print_version(); return 0; - } else if (!strcmp(argv[i], "--help")) { + } + + if (!strcmp(argv[i], "--help")) { free(self.params); return print_usage(0); - } else if (!strcmp(argv[i], "-i")) { + } + + if (!strcmp(argv[i], "-i")) { self.in_path = argv[++i]; } else if (!strcmp(argv[i], "-o")) { self.out_path = argv[++i]; diff --git a/utils/lv2bench.c b/utils/lv2bench.c index 39ee6a7..000f062 100644 --- a/utils/lv2bench.c +++ b/utils/lv2bench.c @@ -217,10 +217,14 @@ main(int argc, char** argv) if (!strcmp(argv[a], "--version")) { print_version(); return 0; - } else if (!strcmp(argv[a], "--help")) { + } + + if (!strcmp(argv[a], "--help")) { print_usage(); return 0; - } else if (!strcmp(argv[a], "-f")) { + } + + if (!strcmp(argv[a], "-f")) { full_output = true; } else if (!strcmp(argv[a], "-n") && (a + 1 < argc)) { sample_count = atoi(argv[++a]); diff --git a/utils/lv2info.c b/utils/lv2info.c index 0027da1..f5dd621 100644 --- a/utils/lv2info.c +++ b/utils/lv2info.c @@ -371,10 +371,14 @@ main(int argc, char** argv) if (!strcmp(argv[i], "--version")) { print_version(); return 0; - } else if (!strcmp(argv[i], "--help")) { + } + + if (!strcmp(argv[i], "--help")) { print_usage(); return 0; - } else if (!strcmp(argv[i], "-p")) { + } + + if (!strcmp(argv[i], "-p")) { plugin_file = argv[++i]; } else if (!strcmp(argv[i], "-m")) { manifest_file = argv[++i]; |