From: wessels <> Date: Fri, 6 Feb 1998 13:51:03 +0000 (+0000) Subject: fix aclDumpTimeSpec X-Git-Tag: SQUID_3_0_PRE1~4149 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=80b4b4d03f111a2ecf61990ca36279ee27c86b99;p=thirdparty%2Fsquid.git fix aclDumpTimeSpec --- diff --git a/src/acl.cc b/src/acl.cc index eee5fcadc1..bb22ab22fa 100644 --- a/src/acl.cc +++ b/src/acl.cc @@ -1,6 +1,6 @@ /* - * $Id: acl.cc,v 1.135 1998/02/06 06:44:31 wessels Exp $ + * $Id: acl.cc,v 1.136 1998/02/06 06:51:03 wessels Exp $ * * DEBUG: section 28 Access Control * AUTHOR: Duane Wessels @@ -61,7 +61,7 @@ static FQDNH aclLookupDstFQDNDone; static int aclReadProxyAuth(struct _acl_proxy_auth *p); static wordlist * aclDumpIpList(acl_ip_data * ip); static wordlist * aclDumpDomainList(void *data); -static wordlist * aclDumpTimeSpec(void *data); +static wordlist * aclDumpTimeSpec(acl_time_data *); static wordlist * aclDumpRegexList(void *data); static wordlist * aclDumpIntlist(void *data); static wordlist * aclDumpWordList(wordlist *data); @@ -514,6 +514,9 @@ aclParseTimeSpec(void *curlist) case 'D': q->weekbits |= ACL_WEEKDAYS; break; + case '-': + /* ignore placeholder */ + break; default: debug(28, 0) ("%s line %d: %s\n", cfg_filename, config_lineno, config_input_line); @@ -2088,12 +2091,6 @@ aclDumpDomainList(void *data) static wordlist * aclDumpTimeSpec(acl_time_data *t) { -struct _acl_time_data { - int weekbits; - int start; - int stop; - acl_time_data *next; -}; wordlist *W = NULL; wordlist **T = &W; wordlist *w; @@ -2116,7 +2113,8 @@ struct _acl_time_data { *T = w; T = &w->next; t = t->next; - + } + return W; } static wordlist * aclDumpRegexList(void *data)