]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/format/Config.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / format / Config.cc
index 17c730933c36a5d99613d1868dfc90d729214d29..c0cfb2fc98b9c3d915a3903fb3f23356d484b457 100644 (file)
@@ -1,5 +1,6 @@
 #include "squid.h"
 #include "cache_cf.h"
+#include "ConfigParser.h"
 #include "Debug.h"
 #include "format/Config.h"
 #include <list>
@@ -11,10 +12,10 @@ Format::FmtConfig::parseFormats()
 {
     char *name, *def;
 
-    if ((name = strtok(NULL, w_space)) == NULL)
+    if ((name = ConfigParser::NextToken()) == NULL)
         self_destruct();
 
-    if ((def = strtok(NULL, "\r\n")) == NULL) {
+    if ((def = ConfigParser::NextQuotedOrToEol()) == NULL) {
         self_destruct();
         return;
     }