diff options
author | ache <ache@FreeBSD.org> | 1997-11-01 05:47:41 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-11-01 05:47:41 +0000 |
commit | 79136b2cb8e58be33df1236eb29a1d71984a2885 (patch) | |
tree | 1805c46d1372e4a51ae49a43265e8ef2c4f057d8 /usr.bin/fetch/http.c | |
parent | 154d1d7db2e878b0957da3fc7307867cd90d9457 (diff) | |
download | FreeBSD-src-79136b2cb8e58be33df1236eb29a1d71984a2885.zip FreeBSD-src-79136b2cb8e58be33df1236eb29a1d71984a2885.tar.gz |
Change diags to see what part of url actually parsed, see
previous change about #? parms
Diffstat (limited to 'usr.bin/fetch/http.c')
-rw-r--r-- | usr.bin/fetch/http.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/fetch/http.c b/usr.bin/fetch/http.c index 999bb46..655be30 100644 --- a/usr.bin/fetch/http.c +++ b/usr.bin/fetch/http.c @@ -26,7 +26,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: http.c,v 1.12 1997/09/28 11:25:59 cracauer Exp $ + * $Id: http.c,v 1.13 1997/10/31 23:33:44 ache Exp $ */ #include <sys/types.h> @@ -139,7 +139,7 @@ http_parse(struct fetch_state *fs, const char *u) port = 0; if (p[0] != '/' || p[1] != '/') { - warnx("`%s': malformed `http' URL", u); + warnx("`%s': malformed `http' URL", uri); return EX_USAGE; } @@ -157,7 +157,7 @@ http_parse(struct fetch_state *fs, const char *u) else q = slash; if (q == 0) { - warnx("`%s': malformed `http' URL", u); + warnx("`%s': malformed `http' URL", uri); return EX_USAGE; } hostname = alloca(q - p + 1); @@ -173,7 +173,7 @@ http_parse(struct fetch_state *fs, const char *u) ul = strtoul(colon + 1, &ep, 10); if (ep != slash || ep == colon + 1 || errno != 0 || ul < 1 || ul > 65534) { - warn("`%s': invalid port in URL", u); + warn("`%s': invalid port in URL", uri); return EX_USAGE; } |