summaryrefslogtreecommitdiffstats
path: root/src/ctrl
diff options
context:
space:
mode:
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 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);