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 <lizf@cn.fujitsu.com>
int
main(int argc, char **argv) {
char *from, *to, *p;
- int i, ct;
+ int i;
progname = argv[0];
if ((p = strrchr(progname, '/')) != NULL)
from = argv[1];
to = argv[2];
- ct = 0;
for (i=3; i<argc; i++)
- ct += do_rename(from, to, argv[i]);
+ do_rename(from, to, argv[i]);
return 0;
}