]> granicus.if.org Git - apache/commitdiff
Get rid of a compiler warning.
authorBill Stoddard <stoddard@apache.org>
Mon, 19 Jun 2000 18:00:52 +0000 (18:00 +0000)
committerBill Stoddard <stoddard@apache.org>
Mon, 19 Jun 2000 18:00:52 +0000 (18:00 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85617 13f79535-47bb-0310-9956-ffa450edef68

server/util_uri.c

index ad235b7fd8a1613165dd8b86f226058070902903..2bcd7cc5fed8984eca9bcc22247847d3a3da5dec 100644 (file)
@@ -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;
        }