use osmo_{htonl,htons,ntohl,ntohs}() functions all over libosmocore
This gets us one step closer to fixing the embedded build
Change-Id: I3fc2639b6ade9ab138766987eceab7ec9498fdc7
diff --git a/src/gsm/gsm0341.c b/src/gsm/gsm0341.c
index cc77382..1c14d3e 100644
--- a/src/gsm/gsm0341.c
+++ b/src/gsm/gsm0341.c
@@ -23,8 +23,7 @@
#include <stdlib.h>
#include <string.h>
-#include <arpa/inet.h>
-
+#include <osmocom/core/byteswap.h>
#include <osmocom/core/talloc.h>
#include <osmocom/gsm/protocol/gsm_03_41.h>
@@ -36,7 +35,7 @@
{
struct gsm341_ms_message *cbmsg;
- msg_id = htons(msg_id);
+ msg_id = osmo_htons(msg_id);
if (len > 88)
return NULL;