From c53f3368d71d201be0ac36ff87c89fe94656127f Mon Sep 17 00:00:00 2001 From: Bill Stoddard Date: Mon, 19 Jun 2000 18:00:52 +0000 Subject: [PATCH] Get rid of a compiler warning. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85617 13f79535-47bb-0310-9956-ffa450edef68 --- server/util_uri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/util_uri.c b/server/util_uri.c index ad235b7fd8..2bcd7cc5fe 100644 --- a/server/util_uri.c +++ b/server/util_uri.c @@ -596,7 +596,7 @@ API_EXPORT(int) ap_parse_hostinfo_components(ap_pool_t *p, const char *hostinfo, ++s; uptr->port_str = ap_pstrdup(p, s); if (*s != '\0') { - uptr->port = strtol(uptr->port_str, &endstr, 10); + uptr->port = (unsigned short) strtol(uptr->port_str, &endstr, 10); if (*endstr == '\0') { return HTTP_OK; } -- 2.40.0