From: Vincent Bernat Date: Mon, 1 Dec 2014 22:34:44 +0000 (+0100) Subject: snmp: `agent_init()` won't modify AgentX string X-Git-Tag: 0.7.13~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=83d4b7761491443db73189f7d1b4f64957e1c659;p=thirdparty%2Flldpd.git snmp: `agent_init()` won't modify AgentX string This fixes another compiler warning. --- 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