From: Li Zefan Date: Tue, 4 Sep 2007 07:20:25 +0000 (+0800) Subject: rename: remove useless variable X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfcb3d7658a9e991156ad756c368b7104239fc68;p=util-linux rename: remove useless variable The number of files successfully renamed is calculated and stored in variable ct, > but actually the variable is not used afterwards. Signed-off-by: Li Zefan --- diff --git a/misc-utils/rename.c b/misc-utils/rename.c index fd232c96..87262b80 100644 --- a/misc-utils/rename.c +++ b/misc-utils/rename.c @@ -64,7 +64,7 @@ do_rename(char *from, char *to, char *s) { int main(int argc, char **argv) { char *from, *to, *p; - int i, ct; + int i; progname = argv[0]; if ((p = strrchr(progname, '/')) != NULL) @@ -90,8 +90,7 @@ main(int argc, char **argv) { from = argv[1]; to = argv[2]; - ct = 0; for (i=3; i