]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/acl/HierCodeData.cc
Source Format Enforcement (#763)
[thirdparty/squid.git] / src / acl / HierCodeData.cc
index 1fb78d8a2dde69fbc8c9f46e419fcb73acac2132..603a4fec062959edf0dc8e5db31db12b5d6983b2 100644 (file)
@@ -1,7 +1,16 @@
+/*
+ * Copyright (C) 1996-2021 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 "squid.h"
 #include "acl/Checklist.h"
 #include "acl/HierCodeData.h"
-#include "cache_cf.h"
+#include "ConfigParser.h"
+#include "fatal.h"
 #include "hier_code.h"
 
 ACLHierCodeData::ACLHierCodeData()
@@ -42,7 +51,7 @@ ACLHierCodeData::parse()
 {
     char *t = NULL;
 
-    while ((t = strtokFile())) {
+    while ((t = ConfigParser::strtokFile())) {
         for (hier_code iter = HIER_NONE; iter <= HIER_MAX; ++iter) {
             if (iter == HIER_MAX) {
                 fatalf("ERROR: No such hier_code '%s'",t);
@@ -70,3 +79,4 @@ ACLHierCodeData::clone() const
 {
     return new ACLHierCodeData(*this);
 }
+