]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/StoreStats.cc
Docs: Copyright updates for 2018 (#114)
[thirdparty/squid.git] / src / StoreStats.cc
index ccf3290d22fadfc5e726ec6003a95f40ca024df7..1a6b049712450dfc8388f9072334a5ab2f07f05b 100644 (file)
@@ -1,25 +1,27 @@
 /*
- * $Id$
- *
- * DEBUG: section 20    Storage Manager Statistics
+ * Copyright (C) 1996-2018 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.
  */
 
-#include "config.h"
-#include "protos.h" /* for xmemset only */
-#include "StoreStats.h"
+/* DEBUG: section 20    Storage Manager Statistics */
 
+#include "squid.h"
+#include "StoreStats.h"
+#include "tools.h"
 
 /* StoreInfoStats */
 
 StoreInfoStats::StoreInfoStats()
 {
-    xmemset(this, 0, sizeof(*this));
+    memset(this, 0, sizeof(*this));
 }
 
 StoreInfoStats &
 StoreInfoStats::operator +=(const StoreInfoStats &stats)
-{ 
+{
     swap.size += stats.swap.size;
     swap.capacity += stats.swap.capacity;
     swap.count += stats.swap.count;
@@ -51,12 +53,10 @@ StoreInfoStats::operator +=(const StoreInfoStats &stats)
     return *this;
 }
 
-
-
 /* StoreIoStats */
 
 StoreIoStats::StoreIoStats()
 {
-    xmemset(this, 0, sizeof(*this));
+    memset(this, 0, sizeof(*this));
 }