diff options
author | Li Zefan | 2007-09-04 09:20:25 +0200 |
---|---|---|
committer | Karel Zak | 2007-09-05 11:51:11 +0200 |
commit | 14608fdff0872f9043a74c3016186f497769d8d9 (patch) | |
tree | 791398f30d916b0c51a331ca12affd5eaf79f248 /misc-utils | |
parent | build-sys: remove files that are no longer delivered from git (diff) | |
download | kernel-qcow2-util-linux-14608fdff0872f9043a74c3016186f497769d8d9.tar.gz kernel-qcow2-util-linux-14608fdff0872f9043a74c3016186f497769d8d9.tar.xz kernel-qcow2-util-linux-14608fdff0872f9043a74c3016186f497769d8d9.zip |
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 <lizf@cn.fujitsu.com>
Diffstat (limited to 'misc-utils')
-rw-r--r-- | misc-utils/rename.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/misc-utils/rename.c b/misc-utils/rename.c index fd232c967..87262b800 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<argc; i++) - ct += do_rename(from, to, argv[i]); + do_rename(from, to, argv[i]); return 0; } |