From: wessels <> Date: Fri, 28 Nov 1997 15:00:29 +0000 (+0000) Subject: protect with SQUID_SNMP defines X-Git-Tag: SQUID_3_0_PRE1~4472 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=02320b86c4405ebd4031f72555ffb630c8cbb640;p=thirdparty%2Fsquid.git protect with SQUID_SNMP defines --- diff --git a/src/snmp_agent.cc b/src/snmp_agent.cc index bb516a9a8e..2f38bd96f7 100644 --- a/src/snmp_agent.cc +++ b/src/snmp_agent.cc @@ -1,3 +1,4 @@ +#if SQUID_SNMP /* * Simple Network Management Protocol (RFC 1067). * @@ -111,7 +112,7 @@ init_agent_auth(void) debug(49,5) ("init_agent_auth: Agent not installed properly, cannot open '%s'\n", Config.Snmp.agentInfo ); debug(49,5)("init_agent_auth: Create a empty file '%s'. This is used for\n", - snmp_agentinfo ); + Config.Snmp.agentInfo ); debug(49,5)( "NV store of the agentBoots object.\n" ); return -1; } @@ -1011,3 +1012,5 @@ bulk_var_op_list(sn_data, length, out_sn_data, out_length, non_repeaters, max_re *index = 0; return SNMP_ERR_NOERROR; } + +#endif