1
0
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:
Micah Cowan 2007-10-10 20:57:42 -07:00
parent aa4991b8f7
commit d60b6388b6
4 changed files with 9 additions and 3 deletions

View File

@ -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> 2007-10-08 Micah Cowan <micah@cowan.name>
* http.c (http_loop): Add send_head_first conditional back * http.c (http_loop): Add send_head_first conditional back

View File

@ -708,7 +708,7 @@ main (int argc, char *const *argv)
#ifdef WINDOWS #ifdef WINDOWS
/* Drop extension (typically .EXE) from executable filename. */ /* Drop extension (typically .EXE) from executable filename. */
windows_main (&argc, (char **) argv, (char **) &exec_name); windows_main ((char **) &exec_name);
#endif #endif
/* Set option defaults; read the system wgetrc and ~/.wgetrc. */ /* Set option defaults; read the system wgetrc and ~/.wgetrc. */

View File

@ -73,7 +73,7 @@ xsleep (double seconds)
} }
void void
windows_main (int *argc, char **argv, char **exec_name) windows_main (char **exec_name)
{ {
char *p; char *p;
@ -87,6 +87,7 @@ windows_main (int *argc, char **argv, char **exec_name)
static void static void
ws_cleanup (void) ws_cleanup (void)
{ {
xfree ((char*)exec_name);
WSACleanup (); WSACleanup ();
} }

View File

@ -208,6 +208,6 @@ void ws_startup (void);
void ws_changetitle (const char *); void ws_changetitle (const char *);
void ws_percenttitle (double); void ws_percenttitle (double);
char *ws_mypath (void); char *ws_mypath (void);
void windows_main (int *, char **, char **); void windows_main (char **);
#endif /* MSWINDOWS_H */ #endif /* MSWINDOWS_H */