aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1997-11-01 05:47:41 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1997-11-01 05:47:41 +0000
commit9e8930055e9a45d8de7d958cd6284fd31c365fc2 (patch)
tree9632e6b3590d6294f7480cbb89f7d40b3a79c557
parentf3456b7e34811373ce761c5359730d0ac7f1d089 (diff)
downloadsrc-9e8930055e9a45d8de7d958cd6284fd31c365fc2.tar.gz
src-9e8930055e9a45d8de7d958cd6284fd31c365fc2.zip
Change diags to see what part of url actually parsed, see
previous change about #? parms
Notes
Notes: svn path=/head/; revision=30879
-rw-r--r--usr.bin/fetch/http.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/fetch/http.c b/usr.bin/fetch/http.c
index 999bb4636a97..655be30fd558 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;
}