Skip to content

Commit

Permalink
Use standard uint16_t instead of u_int16_t
Browse files Browse the repository at this point in the history
uint16_t, part of stdint so use it instead of u_int16_t for better
compatability across platforms.
  • Loading branch information
pekdon authored and jelmer committed Feb 17, 2022
1 parent 0d753ff commit 2dd6076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/canohost.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ ipv64_normalise_mapped(struct sockaddr_storage *addr, socklen_t *len)
struct sockaddr_in6 *a6 = (struct sockaddr_in6 *)addr;
struct sockaddr_in *a4 = (struct sockaddr_in *)addr;
struct in_addr inaddr;
u_int16_t port;
uint16_t port;

if (addr->ss_family != AF_INET6 ||
!IN6_IS_ADDR_V4MAPPED(&a6->sin6_addr))
Expand Down

0 comments on commit 2dd6076

Please sign in to comment.