diff --git a/src/ChangeLog b/src/ChangeLog index 0a4f4dcb..07d7f385 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,9 @@ 2014-06-11 Giuseppe Scrivano + * ftp.c: Replace main() with main in comments. + * http.c: Likewise. + * init.c: Likewise. + * cmpt.c (day_of_the_week): Remove repeated word in a comment. * utils.c: Remove repeated word in a comment. diff --git a/src/ftp.c b/src/ftp.c index 5f4ef03a..2d543333 100644 --- a/src/ftp.c +++ b/src/ftp.c @@ -1160,7 +1160,7 @@ Error in server response, closing control connection.\n")); /* Open the file -- if output_stream is set, use it instead. */ /* 2005-04-17 SMS. - Note that having the output_stream ("-O") file opened in main() + Note that having the output_stream ("-O") file opened in main (main.c) rather limits the ability in VMS to open the file differently for ASCII versus binary FTP here. (Of course, doing it there allows a open failure to be detected immediately, without first diff --git a/src/http.c b/src/http.c index c6ec1706..9e4dfa4c 100644 --- a/src/http.c +++ b/src/http.c @@ -3022,7 +3022,7 @@ http_loop (struct url *u, struct url *original_url, char **newloc, /* Reset NEWLOC parameter. */ *newloc = NULL; - /* This used to be done in main(), but it's a better idea to do it + /* This used to be done in main, but it's a better idea to do it here so that we don't go through the hoops if we're just using FTP or whatever. */ if (opt.cookies) diff --git a/src/init.c b/src/init.c index 5828aa00..93e95f85 100644 --- a/src/init.c +++ b/src/init.c @@ -833,8 +833,8 @@ setval_internal_tilde (int comind, const char *com, const char *val) /* Run command COM with value VAL. If running the command produces an error, report the error and exit. - This is intended to be called from main() to modify Wget's behavior - through command-line switches. Since COM is hard-coded in main(), + This is intended to be called from main to modify Wget's behavior + through command-line switches. Since COM is hard-coded in main, it is not canonicalized, and this aborts when COM is not found. If COMIND's are exported to init.h, this function will be changed @@ -1385,7 +1385,7 @@ cmd_spec_progress (const char *com, const char *val, void *place_ignored _GL_UNU xfree_null (opt.progress_type); /* Don't call set_progress_implementation here. It will be called - in main() when it becomes clear what the log output is. */ + in main when it becomes clear what the log output is. */ opt.progress_type = xstrdup (val); return true; }