mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Removal of no-longer-used argc, argv (Gisle).
This commit is contained in:
parent
aa4991b8f7
commit
d60b6388b6
@ -1,3 +1,8 @@
|
||||
2007-10-09 Gisle Vanem <gvanem@broadpark.no>
|
||||
|
||||
* mswindows.c: 'argc' and 'argv' in 'windows_main()' are no longer
|
||||
needed. Hence simply the prototype. Free 'exec_name' at exit.
|
||||
|
||||
2007-10-08 Micah Cowan <micah@cowan.name>
|
||||
|
||||
* http.c (http_loop): Add send_head_first conditional back
|
||||
|
@ -708,7 +708,7 @@ main (int argc, char *const *argv)
|
||||
|
||||
#ifdef WINDOWS
|
||||
/* Drop extension (typically .EXE) from executable filename. */
|
||||
windows_main (&argc, (char **) argv, (char **) &exec_name);
|
||||
windows_main ((char **) &exec_name);
|
||||
#endif
|
||||
|
||||
/* Set option defaults; read the system wgetrc and ~/.wgetrc. */
|
||||
|
@ -73,7 +73,7 @@ xsleep (double seconds)
|
||||
}
|
||||
|
||||
void
|
||||
windows_main (int *argc, char **argv, char **exec_name)
|
||||
windows_main (char **exec_name)
|
||||
{
|
||||
char *p;
|
||||
|
||||
@ -87,6 +87,7 @@ windows_main (int *argc, char **argv, char **exec_name)
|
||||
static void
|
||||
ws_cleanup (void)
|
||||
{
|
||||
xfree ((char*)exec_name);
|
||||
WSACleanup ();
|
||||
}
|
||||
|
||||
|
@ -208,6 +208,6 @@ void ws_startup (void);
|
||||
void ws_changetitle (const char *);
|
||||
void ws_percenttitle (double);
|
||||
char *ws_mypath (void);
|
||||
void windows_main (int *, char **, char **);
|
||||
void windows_main (char **);
|
||||
|
||||
#endif /* MSWINDOWS_H */
|
||||
|
Loading…
Reference in New Issue
Block a user