]> sjero.net Git - wget/commitdiff
Remove constification of argv in main.
authorMicah Cowan <micah@cowan.name>
Tue, 30 Oct 2007 23:50:17 +0000 (16:50 -0700)
committerMicah Cowan <micah@cowan.name>
Tue, 30 Oct 2007 23:50:17 +0000 (16:50 -0700)
src/ChangeLog
src/main.c

index 5c67953c2baca17522708bb32e62648f1314471d..c10b34ce5f9d1ae6b0228289882667e4b8c3ac67 100644 (file)
@@ -1,3 +1,9 @@
+2007-10-30  Micah Cowan  <micah@cowan.name>
+
+       * 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  <gvanem@broadpark.no>
 
        * mswindows.c: Move INHIBIT_WRAP macro definition up with wget.h
index 7e36e5d83f6a59fe4809e70e4c213241a5dbdf2f..caecd6a4b7f0d66fff4334f0fae494091a9767a9 100644 (file)
@@ -688,7 +688,7 @@ There is NO WARRANTY, to the extent permitted by law.\n"), stdout);
 \f
 
 int
-main (int argc, char *const *argv)
+main (int argc, char **argv)
 {
   char **url, **t;
   int i, ret, longindex;