summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-11-26 10:38:55 +0100
committerMax <msuraev@sysmocom.de>2018-12-03 21:42:51 +0000
commit30b2e348dfcfafe9eecf9a7d265f4e01fd0d373e (patch)
treebd1d6cef629372736becb6bf05b0af92ce208f84 /src
parentcb02a391cdd59de9f30b55f06974446f006bf40e (diff)
ctrl: use #define for TRAP id
We always use id = 0 when sending TRAP messages. Let's make this more obvious by introducing appropriate define. Change-Id: I33d7d4c6a1885a75a85d6f2f017430e0860b4126
Diffstat (limited to 'src')
-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 1121d07f..0209f3be 100644
--- a/src/ctrl/control_if.c
+++ b/src/ctrl/control_if.c
@@ -156,7 +156,7 @@ int ctrl_cmd_send_trap(struct ctrl_handle *ctrl, const char *name, char *value)
if (!cmd)
return -ENOMEM;
- cmd->id = "0"; /* It's a TRAP! */
+ cmd->id = CTRL_CMD_TRAP_ID; /* It's a TRAP! */
cmd->variable = (char *) name;
cmd->reply = value;
r = ctrl_cmd_send_to_all(ctrl, cmd);