Klaus Demo nginx / 1a1470b
Fixed build on MSVC. Maxim Dounin 6 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
589589 #if (NGX_HAVE_INET6)
590590 case AF_INET6:
591591 sin6 = (struct sockaddr_in6 *) addr->sockaddr;
592 sin6->sin6_port = htons(port);
592 sin6->sin6_port = htons((in_port_t) port);
593593 break;
594594 #endif
595595
596596 default: /* AF_INET */
597597 sin = (struct sockaddr_in *) addr->sockaddr;
598 sin->sin_port = htons(port);
598 sin->sin_port = htons((in_port_t) port);
599599 break;
600600 }
601601