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/gsmtap_util.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/gsmtap_util.c') diff --git a/src/gsmtap_util.c b/src/gsmtap_util.c index ab4a28eb..74f3b48d 100644 --- a/src/gsmtap_util.c +++ b/src/gsmtap_util.c @@ -29,13 +29,12 @@ #include #include #include +#include #include #include #include -#include - #include #include #include @@ -123,10 +122,10 @@ struct msgb *gsmtap_makemsg_ex(uint8_t type, uint16_t arfcn, uint8_t ts, uint8_t gh->type = type; gh->timeslot = ts; gh->sub_slot = ss; - gh->arfcn = htons(arfcn); + gh->arfcn = osmo_htons(arfcn); gh->snr_db = snr; gh->signal_dbm = signal_dbm; - gh->frame_number = htonl(fn); + gh->frame_number = osmo_htonl(fn); gh->sub_type = chan_type; gh->antenna_nr = 0; -- cgit v1.2.3