mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
ftp: Replace main() with main in comments.
This commit is contained in:
parent
3e8f9a6436
commit
c03855be40
@ -1,5 +1,9 @@
|
|||||||
2014-06-11 Giuseppe Scrivano <gscrivan@redhat.com>
|
2014-06-11 Giuseppe Scrivano <gscrivan@redhat.com>
|
||||||
|
|
||||||
|
* 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.
|
* cmpt.c (day_of_the_week): Remove repeated word in a comment.
|
||||||
* utils.c: Remove repeated word in a comment.
|
* utils.c: Remove repeated word in a comment.
|
||||||
|
|
||||||
|
@ -1160,7 +1160,7 @@ Error in server response, closing control connection.\n"));
|
|||||||
/* Open the file -- if output_stream is set, use it instead. */
|
/* Open the file -- if output_stream is set, use it instead. */
|
||||||
|
|
||||||
/* 2005-04-17 SMS.
|
/* 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
|
(main.c) rather limits the ability in VMS to open the file
|
||||||
differently for ASCII versus binary FTP here. (Of course, doing it
|
differently for ASCII versus binary FTP here. (Of course, doing it
|
||||||
there allows a open failure to be detected immediately, without first
|
there allows a open failure to be detected immediately, without first
|
||||||
|
@ -3022,7 +3022,7 @@ http_loop (struct url *u, struct url *original_url, char **newloc,
|
|||||||
/* Reset NEWLOC parameter. */
|
/* Reset NEWLOC parameter. */
|
||||||
*newloc = NULL;
|
*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
|
here so that we don't go through the hoops if we're just using
|
||||||
FTP or whatever. */
|
FTP or whatever. */
|
||||||
if (opt.cookies)
|
if (opt.cookies)
|
||||||
|
@ -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
|
/* Run command COM with value VAL. If running the command produces an
|
||||||
error, report the error and exit.
|
error, report the error and exit.
|
||||||
|
|
||||||
This is intended to be called from main() to modify Wget's behavior
|
This is intended to be called from main to modify Wget's behavior
|
||||||
through command-line switches. Since COM is hard-coded in main(),
|
through command-line switches. Since COM is hard-coded in main,
|
||||||
it is not canonicalized, and this aborts when COM is not found.
|
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
|
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);
|
xfree_null (opt.progress_type);
|
||||||
|
|
||||||
/* Don't call set_progress_implementation here. It will be called
|
/* 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);
|
opt.progress_type = xstrdup (val);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user