From 83d4b7761491443db73189f7d1b4f64957e1c659 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 1 Dec 2014 23:34:44 +0100 Subject: [PATCH] snmp: `agent_init()` won't modify AgentX string This fixes another compiler warning. --- src/daemon/agent.c | 2 +- src/daemon/lldpd.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/daemon/agent.c b/src/daemon/agent.c index 508a4db0..b22cfade 100644 --- a/src/daemon/agent.c +++ b/src/daemon/agent.c @@ -1831,7 +1831,7 @@ agent_log_callback(int major, int minor, } void -agent_init(struct lldpd *cfg, char *agentx) +agent_init(struct lldpd *cfg, const char *agentx) { int rc; diff --git a/src/daemon/lldpd.h b/src/daemon/lldpd.h index 94e16975..f5810676 100644 --- a/src/daemon/lldpd.h +++ b/src/daemon/lldpd.h @@ -202,7 +202,7 @@ char *dmi_asset(void); #ifdef USE_SNMP /* agent.c */ void agent_shutdown(void); -void agent_init(struct lldpd *, char *); +void agent_init(struct lldpd *, const char *); void agent_notify(struct lldpd_hardware *, int, struct lldpd_port *); #endif -- 2.39.5