]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
fix aclDumpTimeSpec
authorwessels <>
Fri, 6 Feb 1998 13:51:03 +0000 (13:51 +0000)
committerwessels <>
Fri, 6 Feb 1998 13:51:03 +0000 (13:51 +0000)
src/acl.cc

index eee5fcadc1d5a2824cc27c99a778f373add46516..bb22ab22fae39bdb0a28e9816a061b856a175fc7 100644 (file)
@@ -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)