From 95871dadbd92048b0dc2ceb2d631a53e062a7420 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 15 May 2017 12:11:36 +0200 Subject: use osmo_{htonl,htons,ntohl,ntohs}() functions all over libosmocore This gets us one step closer to fixing the embedded build Change-Id: I3fc2639b6ade9ab138766987eceab7ec9498fdc7 --- src/stats.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/stats.c') diff --git a/src/stats.c b/src/stats.c index dee5d81a..9c826ccf 100644 --- a/src/stats.c +++ b/src/stats.c @@ -21,6 +21,7 @@ * */ +#include #include #include @@ -195,7 +196,7 @@ int osmo_stats_reporter_set_remote_port(struct osmo_stats_reporter *srep, int po return -ENOTSUP; srep->dest_port = port; - sock_addr->sin_port = htons(port); + sock_addr->sin_port = osmo_htons(port); return update_srep_config(srep); } -- cgit v1.2.3