[PATCH 4/8] sensord: Fix switch statement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

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

--- 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;
 		}
 	}
 



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux