diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-05-15 12:11:36 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-05-15 13:42:03 +0200 |
commit | 95871dadbd92048b0dc2ceb2d631a53e062a7420 (patch) | |
tree | 1d9de18dda6837429409d235171270706bce7041 /src/stats.c | |
parent | 3318c657dea52c143842dab0e0f7733288f7bd4d (diff) |
use osmo_{htonl,htons,ntohl,ntohs}() functions all over libosmocore
This gets us one step closer to fixing the embedded build
Change-Id: I3fc2639b6ade9ab138766987eceab7ec9498fdc7
Diffstat (limited to 'src/stats.c')
-rw-r--r-- | src/stats.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <osmocom/core/byteswap.h> #include <osmocom/core/stats.h> #include <unistd.h> @@ -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); } |