From: Florian Forster Date: Wed, 17 May 2017 09:31:25 +0000 (+0200) Subject: snmp_agent plugin: Don't export the g_agent variable. X-Git-Tag: collectd-5.8.0~171^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2105%2Fhead;p=thirdparty%2Fcollectd.git snmp_agent plugin: Don't export the g_agent variable. --- diff --git a/src/snmp_agent.c b/src/snmp_agent.c index 89718bd03..6cbe881a0 100644 --- a/src/snmp_agent.c +++ b/src/snmp_agent.c @@ -90,7 +90,7 @@ struct snmp_agent_ctx_s { }; typedef struct snmp_agent_ctx_s snmp_agent_ctx_t; -snmp_agent_ctx_t *g_agent = NULL; +static snmp_agent_ctx_t *g_agent = NULL; #define CHECK_DD_TYPE(_dd, _p, _pi, _t, _ti) \ (_dd->plugin ? !strcmp(_dd->plugin, _p) : 0) && \