]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
timeout: remove a redundant assignment
authorPádraig Brady <P@draigBrady.com>
Mon, 31 Aug 2009 18:28:28 +0000 (19:28 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 1 Sep 2009 10:07:15 +0000 (11:07 +0100)
* src/timeout.c (main): While keeping argc and argv in
sync may be marginally useful, it is redundant to update argc,
so just remove that to suppress the clang warning.

src/timeout.c

index 62f3d4b6e24abe53064b41183ff3eb5ac84e9569..6d9d10912879e86bb4d4cd407852f52ca0537e8e 100644 (file)
@@ -268,7 +268,6 @@ main (int argc, char **argv)
     }
   optind++;
 
-  argc -= optind;
   argv += optind;
 
   /* Ensure we're in our own group so all subprocesses can be killed.