]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/snmp/Var.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / snmp / Var.cc
index f05e6220ac763a5173442256d127a30bc6996c13..407ba46ee76c3f15bfd3cedf164e7fa5e901a214 100644 (file)
@@ -1,19 +1,21 @@
 /*
- * $Id$
- *
- * 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 "protos.h"
 #include "snmp/Var.h"
-#if HAVE_ALGORITHM
-#include <algorithm>
-#endif
+#include "tools.h"
 
+#include <algorithm>
 
 Snmp::Var::Var()
 {
@@ -42,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&
@@ -357,3 +359,4 @@ Snmp::Var::unpack(const Ipc::TypedMsgHdr& msg)
         msg.getFixed(val.string, val_len);
     }
 }
+