aboutsummaryrefslogtreecommitdiff
path: root/src/get_hkl.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-06-11 15:42:45 -0700
committerThomas White <taw@bitwiz.org.uk>2010-06-11 15:44:16 -0700
commit0559d06f61cd3f30b5925fe062654eca83eb6dd6 (patch)
tree7c4d588b4827ddeede470b405c3ea511f3a8bfd2 /src/get_hkl.c
parente5adbd4bdf620467c44a7ad99a366e39f04578a2 (diff)
Tidy up switch statements
Diffstat (limited to 'src/get_hkl.c')
-rw-r--r--src/get_hkl.c21
1 files changed, 7 insertions, 14 deletions
diff --git a/src/get_hkl.c b/src/get_hkl.c
index e6fe4cee..c98508ec 100644
--- a/src/get_hkl.c
+++ b/src/get_hkl.c
@@ -136,39 +136,32 @@ int main(int argc, char *argv[])
while ((c = getopt_long(argc, argv, "ht:o:i:p:", longopts, NULL)) != -1) {
switch (c) {
- case 'h' : {
+ case 'h' :
show_help(argv[0]);
return 0;
- }
- case 't' : {
+ case 't' :
template = strdup(optarg);
break;
- }
- case 'o' : {
+ case 'o' :
output = strdup(optarg);
break;
- }
- case 'i' : {
+ case 'i' :
input = strdup(optarg);
break;
- }
- case 'p' : {
+ case 'p' :
filename = strdup(optarg);
break;
- }
- case 0 : {
+ case 0 :
break;
- }
- default : {
+ default :
return 1;
}
- }
}