]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
protect with SQUID_SNMP defines
authorwessels <>
Fri, 28 Nov 1997 15:00:29 +0000 (15:00 +0000)
committerwessels <>
Fri, 28 Nov 1997 15:00:29 +0000 (15:00 +0000)
src/snmp_agent.cc

index bb516a9a8eea646e9d05adb37f1a235627a77bd7..2f38bd96f737877b2362da8ca2d2187684ccc43f 100644 (file)
@@ -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