aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_unixize.c
diff options
context:
space:
mode:
authorjozan <jozan@noemail.net>2020-11-06 03:12:33 +0000
committerjozan <jozan@noemail.net>2020-11-06 03:12:33 +0000
commit77084d56e34887fe1b19f7ba9a9a5b2508af89e3 (patch)
treecb8539c202debf2f4ada5ddb53a28a55b6552510 /src/c_unixize.c
parentFreed some leaks, work in progress (diff)
downloadunixize-77084d56e34887fe1b19f7ba9a9a5b2508af89e3.tar.gz
unixize-77084d56e34887fe1b19f7ba9a9a5b2508af89e3.tar.bz2
unixize-77084d56e34887fe1b19f7ba9a9a5b2508af89e3.tar.xz
unixize-77084d56e34887fe1b19f7ba9a9a5b2508af89e3.tar.zst
unixize-77084d56e34887fe1b19f7ba9a9a5b2508af89e3.zip
Must reparse options
FossilOrigin-Name: 7a4169603246baa42e24eca59517253be703abdaf3eeac79829e4e8db0341506
Diffstat (limited to '')
-rw-r--r--src/c_unixize.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/c_unixize.c b/src/c_unixize.c
index 45ce8d5..c941102 100644
--- a/src/c_unixize.c
+++ b/src/c_unixize.c
@@ -101,15 +101,23 @@ main
nargv = u_get_nargv(&opts);
if (nargv != NULL) {
nargc = 0;
- while (argv[nargc] != NULL) {
+ while (argv[nargc + 1] != NULL) {
nargc++;
}
main(nargc, (const char**)nargv);
+ u_del_nargv(nargv);
}
chdir("../");
}
}
- /* printf("'%s' -> '%s'\n", og_files->filename, new_files->filename); */
+ if (opts.verbose == TRUE) {
+ dprintf(
+ STDOUT_FILENO,
+ "'%s' -> '%s'\n",
+ og_files->filename,
+ new_files->filename
+ );
+ }
/* rename(); */
og_files = og_files->next;
new_files = new_files->next;