summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-02-08 15:46:53 +0000
committerHarald Welte <laforge@gnumonks.org>2017-02-08 16:49:14 +0100
commitf12d40f4df1d42e4e1ee81607db53cb01dced80d (patch)
treedad2b8b26c2a30d445706ace067cea1a98d548a6 /src
parent6b986c24228a4cc83b22e1d8aae22b94fe36e6f2 (diff)
fix various compiler warnings (on FreeBSD-11.0)
FreeBSD 11.0 uses clang version 3.8.0 which spits various warnings during libosmocore compilation. Let's clean this up a bit. Change-Id: Ic14572e6970bd0b8916604fabf807f1608fa07e5
Diffstat (limited to 'src')
-rw-r--r--src/ctrl/control_if.c2
-rw-r--r--src/gsm/abis_nm.c2
-rw-r--r--src/gsm/ipa.c1
3 files changed, 3 insertions, 2 deletions
diff --git a/src/ctrl/control_if.c b/src/ctrl/control_if.c
index df394867..b4afd555 100644
--- a/src/ctrl/control_if.c
+++ b/src/ctrl/control_if.c
@@ -131,7 +131,7 @@ int ctrl_cmd_send_trap(struct ctrl_handle *ctrl, const char *name, char *value)
return -ENOMEM;
cmd->id = "0"; /* It's a TRAP! */
- cmd->variable = name;
+ cmd->variable = (char *) name;
cmd->reply = value;
r = ctrl_cmd_send_to_all(ctrl, cmd);
talloc_free(cmd);
diff --git a/src/gsm/abis_nm.c b/src/gsm/abis_nm.c
index 10aae9a7..155084ac 100644
--- a/src/gsm/abis_nm.c
+++ b/src/gsm/abis_nm.c
@@ -571,7 +571,7 @@ struct msgb *abis_nm_fail_evt_vrep(enum abis_nm_event_type t,
return NULL;
}
if (len)
- msgb_tl16v_put(nmsg, NM_ATT_ADD_TEXT, len, add_text);
+ msgb_tl16v_put(nmsg, NM_ATT_ADD_TEXT, len, (const uint8_t *) add_text);
return nmsg;
}
diff --git a/src/gsm/ipa.c b/src/gsm/ipa.c
index 6dc3ab60..f44c3284 100644
--- a/src/gsm/ipa.c
+++ b/src/gsm/ipa.c
@@ -28,6 +28,7 @@
#include <arpa/inet.h>
#include <sys/types.h>
+#include <sys/socket.h>
#include <osmocom/core/msgb.h>
#include <osmocom/core/talloc.h>