Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jun 2012 05:44:38 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r237425 - stable/9/usr.sbin/ctladm
Message-ID:  <201206220544.q5M5icGh058905@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Fri Jun 22 05:44:38 2012
New Revision: 237425
URL: http://svn.freebsd.org/changeset/base/237425

Log:
  MFC r237255:
  	Remove variables which are initialized but never used thereafter reported by gcc46 warning
  
  Approved by:	cperciva (implicit)

Modified:
  stable/9/usr.sbin/ctladm/ctladm.c
Directory Properties:
  stable/9/usr.sbin/ctladm/   (props changed)

Modified: stable/9/usr.sbin/ctladm/ctladm.c
==============================================================================
--- stable/9/usr.sbin/ctladm/ctladm.c	Fri Jun 22 05:42:05 2012	(r237424)
+++ stable/9/usr.sbin/ctladm/ctladm.c	Fri Jun 22 05:44:38 2012	(r237425)
@@ -764,7 +764,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;
@@ -773,7 +772,6 @@ cctl_delay(int fd, int target, int lun, 
 	int c;
 
 	retval = 0;
-	datamove_delay = 0;
 
 	memset(&delay_info, 0, sizeof(delay_info));
 
@@ -3708,7 +3706,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;
@@ -3719,10 +3717,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;
@@ -3731,7 +3728,6 @@ main(int argc, char **argv)
 	retries = 0;
 	target = 0;
 	lun = 0;
-	timeout = 0;
 	initid = 7;
 
 	if (argc < 2) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206220544.q5M5icGh058905>