From 64fabf9fca9a1e4914650005bbd72ea65b0f7da5 Mon Sep 17 00:00:00 2001 From: Antony Pavlov Date: Sun, 19 Jul 2015 23:07:08 +0300 Subject: net_udp_bind(): use uint16_t type for source port Signed-off-by: Antony Pavlov Signed-off-by: Sascha Hauer --- include/net.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/net.h b/include/net.h index b93e264f54..d7a475132a 100644 --- a/include/net.h +++ b/include/net.h @@ -445,7 +445,7 @@ struct net_connection *net_icmp_new(IPaddr_t dest, rx_handler_f *handler, void net_unregister(struct net_connection *con); -static inline int net_udp_bind(struct net_connection *con, int sport) +static inline int net_udp_bind(struct net_connection *con, uint16_t sport) { con->udp->uh_sport = ntohs(sport); return 0; -- cgit v1.2.3