]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
cytune: remove unused variable
authorKarel Zak <kzak@redhat.com>
Wed, 8 Jun 2011 10:22:21 +0000 (12:22 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 8 Jun 2011 10:22:21 +0000 (12:22 +0200)
cytune.c: In function ‘summary’:
cytune.c:105:9: warning: variable ‘j’ set but not used [-Wunused-but-set-variable]

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/cytune.c

index 47b3729070bd95d07a5c8ea69d98d4327e8c0206..32d820aae24761b2a571c96eb2d2e94693c9ecc3 100644 (file)
@@ -98,11 +98,9 @@ static char ***global_argv;
 static void
 summary(int sig) {
   struct cyclades_control *cc;
-
   int argc, local_optind;
   char **argv;
-
-  int i,j;
+  int i;
 
   argc = global_argc;
   argv = *global_argv;
@@ -110,7 +108,6 @@ summary(int sig) {
 
   if (sig > 0) {
     for(i = local_optind; i < argc; i ++) {
-      j = i - local_optind;
       cc = &cmon[cmon_index];
       fprintf(stderr, _("File %s, For threshold value %lu, Maximum characters in fifo were %d,\nand the maximum transfer rate in characters/second was %f\n"), 
              argv[i],