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/logging_gsmtap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/logging_gsmtap.c') diff --git a/src/logging_gsmtap.c b/src/logging_gsmtap.c index 85f8c28b..f37f8e7d 100644 --- a/src/logging_gsmtap.c +++ b/src/logging_gsmtap.c @@ -32,7 +32,6 @@ #include #include #include -#include #ifdef HAVE_STRINGS_H #include @@ -44,6 +43,7 @@ #include #include #include +#include #define GSMTAP_LOG_MAX_SIZE 4096 @@ -81,12 +81,12 @@ static void _gsmtap_raw_output(struct log_target *target, int subsys, else golh->subsys[0] = '\0'; osmo_strlcpy(golh->src_file.name, file, sizeof(golh->src_file.name)); - golh->src_file.line_nr = htonl(line); + golh->src_file.line_nr = osmo_htonl(line); golh->level = level; /* we always store the timestamp in the message, irrespective * of hat prrint_[ext_]timestamp say */ - golh->ts.sec = htonl(tv.tv_sec); - golh->ts.usec = htonl(tv.tv_usec); + golh->ts.sec = osmo_htonl(tv.tv_sec); + golh->ts.usec = osmo_htonl(tv.tv_usec); rc = vsnprintf((char *) msg->tail, msgb_tailroom(msg), format, ap); if (rc < 0) -- cgit v1.2.3