]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Terniaries are broken under MSVC, they never did resolve how to resolve
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 26 Jul 2001 16:36:40 +0000 (16:36 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 26 Jul 2001 16:36:40 +0000 (16:36 +0000)
  the type of an obvious conversion like this one.  Even casting the const
  to an apr_port_t doesn't solve it.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89730 13f79535-47bb-0310-9956-ffa450edef68

server/listen.c

index f0052ab13f5c9ef48d10de60b65eae054fd34f0d..dc9dc7de5bc9a400ab2c6828e763a5c9786cb1b8 100644 (file)
@@ -276,7 +276,7 @@ int ap_listen_open(process_rec *process, apr_port_t port)
 
     /* allocate a default listener if necessary */
     if (ap_listeners == NULL) {
-       alloc_listener(process, NULL, port ? port : DEFAULT_HTTP_PORT);
+       alloc_listener(process, NULL, (apr_port_t)(port ? port : DEFAULT_HTTP_PORT));
     }
 
     num_open = 0;