]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/snmp/Var.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / snmp / Var.cc
index e3c53d7412378cf5ed3d30719b38f4b4ef52ae24..407ba46ee76c3f15bfd3cedf164e7fa5e901a214 100644 (file)
@@ -1,17 +1,21 @@
 /*
- * DEBUG: section 49    SNMP Interface
+ * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
  *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
  */
 
+/* DEBUG: section 49    SNMP Interface */
+
 #include "squid.h"
 #include "base/TextException.h"
 #include "Debug.h"
 #include "ipc/TypedMsgHdr.h"
 #include "snmp/Var.h"
 #include "tools.h"
-#if HAVE_ALGORITHM
+
 #include <algorithm>
-#endif
 
 Snmp::Var::Var()
 {
@@ -40,7 +44,7 @@ Snmp::Var::operator = (const Var& var)
 void
 Snmp::Var::init()
 {
-    xmemset(this, 0, sizeof(*this));
+    memset(this, 0, sizeof(*this));
 }
 
 Snmp::Var&
@@ -355,3 +359,4 @@ Snmp::Var::unpack(const Ipc::TypedMsgHdr& msg)
         msg.getFixed(val.string, val_len);
     }
 }
+