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;