From 19b896d3236581cfa507992c2863b5f994846831 Mon Sep 17 00:00:00 2001 From: des Date: Tue, 27 Aug 2002 10:19:24 +0000 Subject: s/optarg/s/ (cut'n'paste braino) Spotted by: kris --- usr.bin/fetch/fetch.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'usr.bin/fetch') diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c index 840c0d3..3ae311a 100644 --- a/usr.bin/fetch/fetch.c +++ b/usr.bin/fetch/fetch.c @@ -781,17 +781,15 @@ main(int argc, char *argv[]) /* timeouts */ if ((s = getenv("FTP_TIMEOUT")) != NULL) { ftp_timeout = strtol(s, &end, 10); - if (*optarg == '\0' || *end != '\0' || ftp_timeout < 0) { - warnx("FTP_TIMEOUT (%s) is not a positive integer", - optarg); + if (*s == '\0' || *end != '\0' || ftp_timeout < 0) { + warnx("FTP_TIMEOUT (%s) is not a positive integer", s); ftp_timeout = 0; } } if ((s = getenv("HTTP_TIMEOUT")) != NULL) { http_timeout = strtol(s, &end, 10); - if (*optarg == '\0' || *end != '\0' || http_timeout < 0) { - warnx("HTTP_TIMEOUT (%s) is not a positive integer", - optarg); + if (*s == '\0' || *end != '\0' || http_timeout < 0) { + warnx("HTTP_TIMEOUT (%s) is not a positive integer", s); http_timeout = 0; } } -- cgit v1.1