From: Micah Cowan Date: Tue, 30 Oct 2007 23:50:17 +0000 (-0700) Subject: Remove constification of argv in main. X-Git-Tag: v1.13~490^2 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=5e2ef06c075946a9f4b0edab551c0dd3e7a67058 Remove constification of argv in main. --- 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;