diff options
author | eadler <eadler@FreeBSD.org> | 2012-06-19 06:10:24 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2012-06-19 06:10:24 +0000 |
commit | 9d2aff8e01f156294f9f917eb41d86c4b858a36c (patch) | |
tree | 82d7711ced86d57f6f277746c113bea767d60871 /usr.sbin/ctladm/ctladm.c | |
parent | 8789fefa09b3b0d40dd606924f6ff216156b155d (diff) | |
download | FreeBSD-src-9d2aff8e01f156294f9f917eb41d86c4b858a36c.zip FreeBSD-src-9d2aff8e01f156294f9f917eb41d86c4b858a36c.tar.gz |
Remove variables which are initialized but never used thereafter reported by gcc46 warning
Approved by: cperciva
MFC After: 3 days
Diffstat (limited to 'usr.sbin/ctladm/ctladm.c')
-rw-r--r-- | usr.sbin/ctladm/ctladm.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.sbin/ctladm/ctladm.c b/usr.sbin/ctladm/ctladm.c index f53e9f1..4cdbd42 100644 --- a/usr.sbin/ctladm/ctladm.c +++ b/usr.sbin/ctladm/ctladm.c @@ -772,7 +772,6 @@ static int cctl_delay(int fd, int target, int lun, int argc, char **argv, char *combinedopt) { - int datamove_delay; struct ctl_io_delay_info delay_info; char *delayloc = NULL; char *delaytype = NULL; @@ -781,7 +780,6 @@ cctl_delay(int fd, int target, int lun, int argc, char **argv, int c; retval = 0; - datamove_delay = 0; memset(&delay_info, 0, sizeof(delay_info)); @@ -3803,7 +3801,7 @@ CTL_DEFAULT_DEV); int main(int argc, char **argv) { - int option_index, c; + int c; ctladm_cmdfunction command; ctladm_cmdargs cmdargs; ctladm_optret optreturn; @@ -3814,10 +3812,9 @@ main(int argc, char **argv) int target, lun; int optstart = 2; int retval, fd; - int retries, timeout; + int retries; int initid; - option_index = 0; retval = 0; cmdargs = CTLADM_ARG_NONE; command = CTLADM_CMD_HELP; @@ -3826,7 +3823,6 @@ main(int argc, char **argv) retries = 0; target = 0; lun = 0; - timeout = 0; initid = 7; if (argc < 2) { |