commit | ac17e5939c032e547cf5a6325223ff5eb08e04b1 | [log] [tgz] |
---|---|---|
author | Daniel Veillard <veillard@redhat.com> | Mon Apr 02 15:45:13 2012 +0800 |
committer | Daniel Veillard <veillard@redhat.com> | Mon Apr 02 15:45:13 2012 +0800 |
tree | eded2190ba8ce5f1a5aa1fd69cb4e90866a16945 | |
parent | bdc64d6d5f5f30982279af23cfa2d3ab08ba34c4 [diff] [blame] |
Remove two references to u_short
diff --git a/nanohttp.c b/nanohttp.c index a8af0e1..fab024c 100644 --- a/nanohttp.c +++ b/nanohttp.c
@@ -1166,7 +1166,7 @@ memcpy (&ia, h->h_addr_list[i], h->h_length); sockin.sin_family = h->h_addrtype; sockin.sin_addr = ia; - sockin.sin_port = (u_short)htons ((unsigned short)port); + sockin.sin_port = (unsigned short)htons ((unsigned short)port); addr = (struct sockaddr *) &sockin; #ifdef SUPPORT_IP6 } else if (have_ipv6 () && (h->h_addrtype == AF_INET6)) {