From 5e2ef06c075946a9f4b0edab551c0dd3e7a67058 Mon Sep 17 00:00:00 2001 From: Micah Cowan Date: Tue, 30 Oct 2007 16:50:17 -0700 Subject: [PATCH] Remove constification of argv in main. --- src/ChangeLog | 6 ++++++ src/main.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 5c67953c..c10b34ce 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2007-10-30 Micah Cowan + + * main.c (main): Declare argv parameter as char **argv, rather + than char *const *argv. This fixes usage of getopt_long, + regardless of whether getopt_long has a constified argv or not. + 2007-10-22 Gisle Vanem * mswindows.c: Move INHIBIT_WRAP macro definition up with wget.h diff --git a/src/main.c b/src/main.c index 7e36e5d8..caecd6a4 100644 --- a/src/main.c +++ b/src/main.c @@ -688,7 +688,7 @@ There is NO WARRANTY, to the extent permitted by law.\n"), stdout); int -main (int argc, char *const *argv) +main (int argc, char **argv) { char **url, **t; int i, ret, longindex; -- 2.39.2