aboutsummaryrefslogtreecommitdiff
path: root/src/process_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/process_hkl.c
parente5adbd4bdf620467c44a7ad99a366e39f04578a2 (diff)
Tidy up switch statements
Diffstat (limited to 'src/process_hkl.c')
-rw-r--r--src/process_hkl.c31
1 files changed, 11 insertions, 20 deletions
diff --git a/src/process_hkl.c b/src/process_hkl.c
index 8698b30a..d5d934c9 100644
--- a/src/process_hkl.c
+++ b/src/process_hkl.c
@@ -272,54 +272,45 @@ int main(int argc, char *argv[])
while ((c = getopt_long(argc, argv, "hi:e:ro:p:", longopts, NULL)) != -1) {
switch (c) {
- case 'h' : {
+ case 'h' :
show_help(argv[0]);
return 0;
- }
- case 'i' : {
+ case 'i' :
filename = strdup(optarg);
break;
- }
- case 'o' : {
+ case 'o' :
output = strdup(optarg);
break;
- }
- case 'r' : {
+
+ case 'r' :
config_rvsq = 1;
break;
- }
- case 'e' : {
+ case 'e' :
config_every = atoi(optarg);
break;
- }
- case 's' : {
+ case 's' :
config_stopafter = atoi(optarg);
break;
- }
- case 'c' : {
+ case 'c' :
intfile = strdup(optarg);
break;
- }
- case 'p' : {
+ case 'p' :
pdb = strdup(optarg);
break;
- }
- case 0 : {
+ case 0 :
break;
- }
- default : {
+ default :
return 1;
}
- }
}