summaryrefslogtreecommitdiffstats
path: root/src/ctrl
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/ctrl
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/ctrl')
-rw-r--r--src/ctrl/control_if.c2
1 files changed, 1 insertions, 1 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);