]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
One more hardcoded ident reference from external_acl, discovered by
authorhno <>
Thu, 27 Jun 2002 02:57:09 +0000 (02:57 +0000)
committerhno <>
Thu, 27 Jun 2002 02:57:09 +0000 (02:57 +0000)
Vladimir B. Savkin

src/external_acl.cc

index 0af6063132bbdc6167002d6013c3cd72980d3e8f..152cb9f4777437f0eb331541b2da537bf92fe306 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: external_acl.cc,v 1.3 2002/06/25 11:58:15 hno Exp $
+ * $Id: external_acl.cc,v 1.4 2002/06/26 20:57:09 hno Exp $
  *
  * DEBUG: section 82    External ACL
  * AUTHOR: Henrik Nordstrom, MARA Systems AB
@@ -239,7 +239,7 @@ parse_externalAclHelper(external_acl ** list)
            a->require_auth = 1;
        }
 #if USE_IDENT
-               else if (strcmp(token, "%IDENT") == 0)
+       else if (strcmp(token, "%IDENT") == 0)
            format->type = EXT_ACL_IDENT;
 #endif
        else if (strcmp(token, "%SRC") == 0)
@@ -307,7 +307,9 @@ dump_externalAclHelper(StoreEntry * sentry, const char *name, const external_acl
                storeAppendPrintf(sentry, " %%%s", #a); \
                break
                DUMP_EXT_ACL_TYPE(LOGIN);
+#if USE_IDENT
                DUMP_EXT_ACL_TYPE(IDENT);
+#endif
                DUMP_EXT_ACL_TYPE(SRC);
                DUMP_EXT_ACL_TYPE(DST);
                DUMP_EXT_ACL_TYPE(PROTO);
@@ -696,8 +698,8 @@ strwordtok(char *buf, char **t)
   done:
     *d++ = '\0';
   error:
-    *t = (char *)p;
-    return (char *)word;
+    *t = (char *) p;
+    return (char *) word;
 }
 
 /*