aboutsummaryrefslogtreecommitdiff
path: root/src/hdfsee.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/hdfsee.c
parente5adbd4bdf620467c44a7ad99a366e39f04578a2 (diff)
Tidy up switch statements
Diffstat (limited to 'src/hdfsee.c')
-rw-r--r--src/hdfsee.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/hdfsee.c b/src/hdfsee.c
index ff74ead6..de150df2 100644
--- a/src/hdfsee.c
+++ b/src/hdfsee.c
@@ -101,41 +101,35 @@ int main(int argc, char *argv[])
while ((c = getopt_long(argc, argv, "hp:b:i:", longopts, NULL)) != -1) {
switch (c) {
- case 'h' : {
+ case 'h' :
show_help(argv[0]);
return 0;
- }
- case 'p' : {
+ case 'p' :
peaks = strdup(optarg);
break;
- }
- case 'i' : {
+ case 'i' :
boost = atoi(optarg);
if ( boost < 1 ) {
ERROR("Intensity boost must be a positive"
" integer.\n");
}
break;
- }
- case 'b' : {
+ case 'b' :
binning = atoi(optarg);
if ( boost < 1 ) {
ERROR("Binning must be a positive integer.\n");
}
break;
- }
- case 0 : {
+ case 0 :
break;
- }
- default : {
+ default :
return 1;
}
- }
}