]> git.ipfire.org Git - thirdparty/sarg.git/blobdiff - squidguard_log.c
Use boolean to enable all the options instead of string compares.
[thirdparty/sarg.git] / squidguard_log.c
index d3f5389e667e316ec9b856bac0ac3669f7d5d177..416212524f543ade416095d8fd0a1dc4f9637558 100644 (file)
@@ -148,7 +148,7 @@ static void read_log(const char *wentp, FILE *fp_ou)
       sprintf(wdata,"%s%s%s",year,mon,day);
       idata = atoi(wdata);
 
-      if(strcmp(SquidguardIgnoreDate,"on") == 0) {
+      if(SquidguardIgnoreDate) {
          if(idata < dfrom || idata > duntil)
             continue;
       }
@@ -197,7 +197,7 @@ void squidguard_log(void)
    bzero(mon, 4);
    bzero(year, 5);
 
-   if(strcmp(SquidguardIgnoreDate,"on") == 0) {
+   if(SquidguardIgnoreDate) {
       if(strcmp(df,"e") == 0) {
          strncpy(day,period,2);
          strncpy(mon,period+2,3);