]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - lib/Splay.cc
Source Format Enforcement (#532)
[thirdparty/squid.git] / lib / Splay.cc
index 125eb26ac4a07f77dfa29d53650a620d0e7f52ec..b52ce76819956149d217cea11232abe6965d96db 100644 (file)
@@ -1,3 +1,11 @@
+/*
+ * Copyright (C) 1996-2020 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.
+ */
+
 /*
  * based on ftp://ftp.cs.cmu.edu/user/sleator/splaying/top-down-splay.c
  * http://bobo.link.cs.cmu.edu/cgi-bin/splay/splay-cgi.pl
@@ -5,12 +13,7 @@
 
 #include "squid.h"
 
-#if HAVE_STDIO_H
-#include <stdio.h>
-#endif
-#if HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
+#include <cstdlib>
 #if HAVE_UNISTD_H
 #include <unistd.h>
 #endif
@@ -19,3 +22,4 @@
 #include "util.h"
 
 int splayLastResult = 0;
+