[RFC v2 01/16] net_udp_bind(): use uint16_t type for source port
Antony Pavlov
antonynpavlov at gmail.com
Sun Jul 19 13:07:08 PDT 2015
Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
---
include/net.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/net.h b/include/net.h
index b93e264..d7a4751 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;
--
2.1.4
More information about the barebox
mailing list