]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Compile issues in revno.11508
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 20 Jun 2011 11:24:11 +0000 (23:24 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 20 Jun 2011 11:24:11 +0000 (23:24 +1200)
src/acl/Acl.cc

index 799377668e49d782ffd0f9a31b93d38dd95c1a43..4ac0d7514d43ed8ce823fcc5555b88bd093af59b 100644 (file)
  *
  */
 #include "config.h"
-
 #include "acl/Acl.h"
 #include "acl/Checklist.h"
 #include "ConfigParser.h"
+#include "Debug.h"
 #include "dlink.h"
 #include "ProtoPort.h"
 
@@ -113,7 +113,7 @@ ACL::ParseAclLine(ConfigParser &parser, ACL ** head)
 
     xstrncpy(aclname, t, ACL_NAME_SZ);
     /* snarf the ACL type */
-    char *theType;
+    const char *theType;
 
     if ((theType = strtok(NULL, w_space)) == NULL) {
         debugs(28, 0, "aclParseAclLine: missing ACL type.");
@@ -130,7 +130,7 @@ ACL::ParseAclLine(ConfigParser &parser, ACL ** head)
                 debugs(28, DBG_CRITICAL, "WARNING: 'myip' ACL is not reliable for interception proxies. Please use 'myportname' instead.");
             p = p->next;
         }
-        debugs(28, DBG_WARNING, "UPGRADE: ACL 'myip' type is has been renamed to 'localip' and matches the IP the client connected to.");
+        debugs(28, DBG_IMPORTANT, "UPGRADE: ACL 'myip' type is has been renamed to 'localip' and matches the IP the client connected to.");
         theType = "localip";
     } else if (strcmp(theType, "myport") != 0) {
         http_port_list *p = Config.Sockaddr.http;
@@ -142,7 +142,7 @@ ACL::ParseAclLine(ConfigParser &parser, ACL ** head)
             p = p->next;
         }
         theType = "localport";
-        debugs(28, DBG_WARNING, "UPGRADE: ACL 'myport' type is has been renamed to 'localport' and matches the port the client connected to.");
+        debugs(28, DBG_IMPORTANT, "UPGRADE: ACL 'myport' type is has been renamed to 'localport' and matches the port the client connected to.");
     }
 
     if (!Prototype::Registered(theType)) {