summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2015-07-19 23:07:08 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2015-07-20 07:46:54 +0200
commit64fabf9fca9a1e4914650005bbd72ea65b0f7da5 (patch)
tree221311df0646eb4e6643d342fcf9456b01188c36 /include
parent0011d7c1fc43d51359f2f966215049e0ee8f5b62 (diff)
downloadbarebox-64fabf9fca9a1e4914650005bbd72ea65b0f7da5.tar.gz
barebox-64fabf9fca9a1e4914650005bbd72ea65b0f7da5.tar.xz
net_udp_bind(): use uint16_t type for source port
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/net.h2
1 files changed, 1 insertions, 1 deletions
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;