diff options
author | Thomas White <taw@bitwiz.org.uk> | 2010-06-11 15:42:45 -0700 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2010-06-11 15:44:16 -0700 |
commit | 0559d06f61cd3f30b5925fe062654eca83eb6dd6 (patch) | |
tree | 7c4d588b4827ddeede470b405c3ea511f3a8bfd2 /src/compare_hkl.c | |
parent | e5adbd4bdf620467c44a7ad99a366e39f04578a2 (diff) |
Tidy up switch statements
Diffstat (limited to 'src/compare_hkl.c')
-rw-r--r-- | src/compare_hkl.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/compare_hkl.c b/src/compare_hkl.c index f58c5046..9f39ee09 100644 --- a/src/compare_hkl.c +++ b/src/compare_hkl.c @@ -67,34 +67,28 @@ int main(int argc, char *argv[]) while ((c = getopt_long(argc, argv, "ho:a:b:", longopts, NULL)) != -1) { switch (c) { - case 'h' : { + case 'h' : show_help(argv[0]); return 0; - } - case 'o' : { + case 'o' : outfile = strdup(optarg); break; - } - case 'a' : { + case 'a' : afile = strdup(optarg); break; - } - case 'b' : { + case 'b' : bfile = strdup(optarg); break; - } - case 0 : { + case 0 : break; - } - default : { + default : return 1; } - } } |