From: hno <> Date: Thu, 27 Jun 2002 02:57:09 +0000 (+0000) Subject: One more hardcoded ident reference from external_acl, discovered by X-Git-Tag: SQUID_3_0_PRE1~935 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f45b34c8085bec9d318d155fbe7578968c91ee1;p=thirdparty%2Fsquid.git One more hardcoded ident reference from external_acl, discovered by Vladimir B. Savkin --- diff --git a/src/external_acl.cc b/src/external_acl.cc index 0af6063132..152cb9f477 100644 --- a/src/external_acl.cc +++ b/src/external_acl.cc @@ -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; } /*