mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Remove --wait/--waitretry compatibility code.
Published in <sxs6686py1q.fsf@florida.arsdigita.de>.
This commit is contained in:
parent
38279627b9
commit
de7f766f58
@ -1,3 +1,8 @@
|
|||||||
|
2001-11-19 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||||
|
|
||||||
|
* main.c: Remove --wait / --waitretry backwards compatibility
|
||||||
|
code.
|
||||||
|
|
||||||
2001-11-19 Hrvoje Niksic <hniksic@arsdigita.com>
|
2001-11-19 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||||
|
|
||||||
* main.c (main): Use it.
|
* main.c (main): Use it.
|
||||||
|
14
src/main.c
14
src/main.c
@ -243,7 +243,6 @@ main (int argc, char *const *argv)
|
|||||||
{
|
{
|
||||||
char **url, **t;
|
char **url, **t;
|
||||||
int i, c, nurl, status, append_to_log;
|
int i, c, nurl, status, append_to_log;
|
||||||
int wr = 0;
|
|
||||||
|
|
||||||
static struct option long_options[] =
|
static struct option long_options[] =
|
||||||
{
|
{
|
||||||
@ -518,7 +517,6 @@ GNU General Public License for more details.\n"));
|
|||||||
break;
|
break;
|
||||||
case 152:
|
case 152:
|
||||||
setval ("waitretry", optarg);
|
setval ("waitretry", optarg);
|
||||||
wr = 1;
|
|
||||||
break;
|
break;
|
||||||
case 153:
|
case 153:
|
||||||
setval ("followtags", optarg);
|
setval ("followtags", optarg);
|
||||||
@ -693,18 +691,6 @@ GNU General Public License for more details.\n"));
|
|||||||
if (opt.verbose == -1)
|
if (opt.verbose == -1)
|
||||||
opt.verbose = !opt.quiet;
|
opt.verbose = !opt.quiet;
|
||||||
|
|
||||||
/* Retain compatibility with previous scripts.
|
|
||||||
if wait has been set, but waitretry has not, give it the wait value.
|
|
||||||
A simple check on the values is not enough, I could have set
|
|
||||||
wait to n>0 and waitretry to 0 - HEH */
|
|
||||||
if (opt.wait && !wr)
|
|
||||||
{
|
|
||||||
char opt_wait_str[256]; /* bigger than needed buf to prevent overflow */
|
|
||||||
|
|
||||||
sprintf(opt_wait_str, "%ld", opt.wait);
|
|
||||||
setval ("waitretry", opt_wait_str);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Sanity checks. */
|
/* Sanity checks. */
|
||||||
if (opt.verbose && opt.quiet)
|
if (opt.verbose && opt.quiet)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user