Print this page
8485 Remove set but unused variables in usr/src/cmd
@@ -17,10 +17,11 @@
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
+ * Copyright 2017 Gary Mills
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <stdio.h>
@@ -52,13 +53,10 @@
int
main(int argc, char **argv)
{
const char *opts = "itv";
int c;
- boolean_t opt_i = B_FALSE;
- boolean_t opt_t = B_FALSE;
- boolean_t opt_v = B_FALSE;
LibHalContext *hal_ctx;
DBusError error;
rmm_error_t rmm_error;
int ret = 0;
@@ -65,17 +63,14 @@
vold_init(argc, argv);
while ((c = getopt(argc, argv, opts)) != EOF) {
switch (c) {
case 'i':
- opt_i = B_TRUE;
break;
case 't':
- opt_t = B_TRUE;
break;
case 'v':
- opt_v = B_TRUE;
break;
default:
usage();
return (1);
}