Print this page
8485 Remove set but unused variables in usr/src/cmd

*** 17,26 **** --- 17,27 ---- * 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,64 **** 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; --- 53,62 ----
*** 65,81 **** 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); } --- 63,76 ----