From bfcb3d7658a9e991156ad756c368b7104239fc68 Mon Sep 17 00:00:00 2001 From: Li Zefan Date: Tue, 4 Sep 2007 15:20:25 +0800 Subject: [PATCH] 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 --- misc-utils/rename.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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