[lm-sensors] [PATCH v2 3/7] sensord: Fix switch statement

Andre Prendel andre.prendel at gmx.de
Mon May 11 18:01:36 CEST 2009


Removed useless breaks after some exit() calls.
---

 args.c |    4 ----
 1 file changed, 4 deletions(-)

Index: quilt-sensors/prog/sensord/args.c
===================================================================
--- quilt-sensors.orig/prog/sensord/args.c	2009-03-24 16:37:00.000000000 +0100
+++ quilt-sensors/prog/sensord/args.c	2009-03-24 16:51:25.000000000 +0100
@@ -221,23 +221,19 @@
 		case 'v':
 			printf("sensord version %s\n", LM_VERSION);
 			exit(EXIT_SUCCESS);
-			break;
 		case 'h':
 			printf("Syntax: %s {options} {chips}\n%s", argv[0],
 			       daemonSyntax);
 			exit(EXIT_SUCCESS);
-			break;
 		case ':':
 		case '?':
 			printf("Try `%s --help' for more information.\n",
 			       argv[0]);
 			return -1;
-			break;
 		default:
 			fprintf(stderr,
 				"Internal error while parsing options.\n");
 			return -1;
-			break;
 		}
 	}
 




More information about the lm-sensors mailing list