]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - tools/purge/conffile.hh
Source Format Enforcement (#532)
[thirdparty/squid.git] / tools / purge / conffile.hh
index 960fd8ec635d5f5d778b239ea0589258cbf03469..ae51e8c86ed722d80caa252d35ae459a30ad21ba 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.
+ */
+
 // Author:  Jens-S. V?ckler <voeckler@rvs.uni-hannover.de>
 //
 // File:    conffile.hh
 #define _CONFFILE_HH
 
 #if !defined(__cplusplus)
-#if defined(__GNUC__) || defined(__GNUG__)
-#pragma interface
-#else
 #ifndef HAVE_BOOL
 #define HAVE_BOOL
 typedef int bool;
 #define false 0
 #define true  1
 #endif
-#endif
 #endif /* __cplusplus */
 
-
-#if !defined(DEFAULT_SQUID_CONF)
-#define DEFAULT_SQUID_CONF "/usr/local/squid/etc/squid.conf"
-#endif
-
-#include <stdio.h>
 #include <vector>
 
 struct CacheDir {
@@ -72,7 +70,7 @@ typedef std::vector<CacheDir> CacheDirVector;
 
 int
 readConfigFile( CacheDirVector& cachedir, 
-               const char* fn = DEFAULT_SQUID_CONF, 
+               const char* fn,
                FILE* debug = 0 );
   // purpose: read squid.conf file and extract cache_dir entries
   // paramtr: cachedir (OUT): vector with an entry for each cache_dir found