X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fmain.c;h=f9eabaf8bfc31e7aba6872147a93a5497199c17c;hp=73aba87c598dd009a31a4abaa05369fefffd2192;hb=277e840a0f8e3ec8800cfe7407fe3c16000bc622;hpb=9000d2b527680b4b13964475d84df42815d40e37 diff --git a/src/main.c b/src/main.c index 73aba87c..f9eabaf8 100644 --- a/src/main.c +++ b/src/main.c @@ -34,12 +34,7 @@ so, delete this exception statement from your version. */ #ifdef HAVE_UNISTD_H # include #endif /* HAVE_UNISTD_H */ -#include -#ifdef HAVE_STRING_H -# include -#else -# include -#endif /* HAVE_STRING_H */ +#include #ifdef HAVE_SIGNAL_H # include #endif @@ -49,11 +44,7 @@ so, delete this exception statement from your version. */ #endif /* HAVE_LOCALE_H */ #endif /* HAVE_NLS */ #include - #include -#ifndef errno -extern int errno; -#endif #include "wget.h" #include "utils.h" @@ -79,7 +70,7 @@ extern char *version_string; extern struct cookie_jar *wget_cookie_jar; -static RETSIGTYPE redirect_output_signal PARAMS ((int)); +static RETSIGTYPE redirect_output_signal (int); const char *exec_name; @@ -115,8 +106,8 @@ i18n_initialize (void) /* Definition of command-line options. */ -static void print_help PARAMS ((void)); -static void print_version PARAMS ((void)); +static void print_help (void); +static void print_version (void); #ifdef HAVE_SSL # define IF_SSL(x) x @@ -738,7 +729,7 @@ main (int argc, char *const *argv) break; case OPT_FUNCALL: { - void (*func) PARAMS ((void)) = (void (*) PARAMS ((void))) opt->data; + void (*func) (void) = (void (*) (void)) opt->data; func (); } break;