mirror of
https://github.com/mirror/wget.git
synced 2025-01-08 19:30:41 +08:00
[svn] Don't declare log_* functions in main.c.
This commit is contained in:
parent
ad75dd2662
commit
19144a9f4c
@ -1,3 +1,8 @@
|
|||||||
|
2003-11-06 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
|
* log.h: Declare log_init, log_close, and
|
||||||
|
log_request_redirect_output here.
|
||||||
|
|
||||||
2003-11-05 Dennis Smit <ds@nerds-incorporated.org>
|
2003-11-05 Dennis Smit <ds@nerds-incorporated.org>
|
||||||
|
|
||||||
* main.c: (main): added --preserve-permissions option.
|
* main.c: (main): added --preserve-permissions option.
|
||||||
|
@ -55,4 +55,8 @@ void logflush PARAMS ((void));
|
|||||||
void log_set_flush PARAMS ((int));
|
void log_set_flush PARAMS ((int));
|
||||||
int log_set_save_context PARAMS ((int));
|
int log_set_save_context PARAMS ((int));
|
||||||
|
|
||||||
|
void log_init PARAMS ((const char *, int));
|
||||||
|
void log_close PARAMS ((void));
|
||||||
|
void log_request_redirect_output PARAMS ((const char *));
|
||||||
|
|
||||||
#endif /* LOG_H */
|
#endif /* LOG_H */
|
||||||
|
10
src/main.c
10
src/main.c
@ -81,11 +81,6 @@ extern char *version_string;
|
|||||||
|
|
||||||
extern struct cookie_jar *wget_cookie_jar;
|
extern struct cookie_jar *wget_cookie_jar;
|
||||||
|
|
||||||
/* From log.c. */
|
|
||||||
void log_init PARAMS ((const char *, int));
|
|
||||||
void log_close PARAMS ((void));
|
|
||||||
void log_request_redirect_output PARAMS ((const char *));
|
|
||||||
|
|
||||||
static RETSIGTYPE redirect_output_signal PARAMS ((int));
|
static RETSIGTYPE redirect_output_signal PARAMS ((int));
|
||||||
|
|
||||||
const char *exec_name;
|
const char *exec_name;
|
||||||
@ -342,8 +337,11 @@ init_switches (void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
xzero (long_options[o]);
|
/* Terminate short_options. */
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
|
/* No need for xzero(long_options[o]) because its storage is static
|
||||||
|
and it will be zeroed by default. */
|
||||||
|
assert (o <= countof (long_options));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Print the usage message. */
|
/* Print the usage message. */
|
||||||
|
Loading…
Reference in New Issue
Block a user