head	1.9;
access;
symbols
	RELEASE_4_3_0:1.8
	RELEASE_4_2_0:1.8
	RELEASE_4_1_1:1.3
	RELEASE_4_1_0:1.3
	RELEASE_3_5_0:1.3;
locks; strict;
comment	@# @;


1.9
date	2001.05.16.18.55.28;	author dinoex;	state dead;
branches;
next	1.8;

1.8
date	2000.10.25.00.42.37;	author ache;	state Exp;
branches;
next	1.7;

1.7
date	2000.10.14.13.47.12;	author ache;	state Exp;
branches;
next	1.6;

1.6
date	2000.10.10.15.53.51;	author ache;	state Exp;
branches;
next	1.5;

1.5
date	2000.09.30.14.19.53;	author ache;	state Exp;
branches;
next	1.4;

1.4
date	2000.09.28.16.12.33;	author ache;	state Exp;
branches;
next	1.3;

1.3
date	2000.04.21.19.25.44;	author ache;	state Exp;
branches;
next	1.2;

1.2
date	2000.04.20.01.50.47;	author ache;	state Exp;
branches;
next	1.1;

1.1
date	2000.04.18.19.04.36;	author ache;	state Exp;
branches;
next	;


desc
@@


1.9
log
@- Removed development port, all changes have meen merged into www/webalizer
@
text
@--- webalizer.c.orig	Fri Oct  6 11:59:08 2000
+++ webalizer.c	Sat Oct 14 17:17:29 2000
@@@@ -569,7 +569,7 @@@@
 
          /* convert month name to lowercase */
          for (i=4;i<7;i++)
-            log_rec.datetime[i]=tolower(log_rec.datetime[i]);
+	    log_rec.datetime[i]=tolower((unsigned char)log_rec.datetime[i]);
 
          /* get year/month/day/hour/min/sec values    */
          for (i=0;i<12;i++)
@@@@ -1459,19 +1459,19 @@@@
    while ( (fgets(buffer,BUFSIZE,fp)) != NULL)
    {
       /* skip comments and blank lines */
-      if ( (buffer[0]=='#') || isspace((int)buffer[0]) ) continue;
+      if ( (buffer[0]=='#') || isspace((unsigned char)buffer[0]) ) continue;
 
       /* Get keyword */
       cp1=buffer;cp2=keyword;
-      while ( isalnum((int)*cp1) ) *cp2++ = *cp1++;
+      while ( isalnum((unsigned char)*cp1) ) *cp2++ = *cp1++;
       *cp2='\0';
 
       /* Get value */
       cp2=value;
-      while ( (*cp1!='\n')&&(*cp1!='\0')&&(isspace((int)*cp1)) ) cp1++;
+      while ( (*cp1!='\n')&&(*cp1!='\0')&&(isspace((unsigned char)*cp1)) ) cp1++;
       while ( (*cp1!='\n')&&(*cp1!='\0') ) *cp2++ = *cp1++;
       *cp2--='\0';
-      while ( (isspace((int)*cp2)) && (cp2 != value) ) *cp2--='\0';
+      while ( (isspace((unsigned char)*cp2)) && (cp2 != value) ) *cp2--='\0';
 
       /* check if blank keyword/value */
       if ( (keyword[0]=='\0') || (value[0]=='\0') ) continue;
@@@@ -1720,7 +1720,7 @@@@
 
 int isurlchar(char ch)
 {
-   if (isalnum((int)ch)) return 1;           /* allow letters, numbers...    */
+   if (isalnum((unsigned char)ch)) return 1;           /* allow letters, numbers...    */
    return (strchr(":/\\.,' *-+_@@~()[]",ch)!=NULL); /* and a few special ones */
 }
 
@@@@ -1813,7 +1813,7 @@@@
          if (*cp1=='+') *cp1=' ';                      /* change + to space  */
          if (sp_flg && *cp1==' ') { cp1++; continue; } /* compress spaces    */
          if (*cp1==' ') sp_flg=1; else sp_flg=0;       /* (flag spaces here) */
-         *cp2++=tolower(*cp1);                         /* normal character   */
+	 *cp2++= *cp1;                               /* normal character   */
          cp1++;
       }
    }
@@@@ -1848,7 +1848,7 @@@@
    int  i=group_domains+1;
 
    cp = str+strlen(str)-1;
-   if (isdigit((int)*cp)) return NULL;   /* ignore IP addresses */
+   if (isdigit((unsigned char)*cp)) return NULL;   /* ignore IP addresses */
 
    while (cp!=str)
    {
@


1.8
log
@fix off-by-one mistake in my fix
@
text
@@


1.7
log
@ctype fixes
@
text
@d50 1
a50 1
+	 *cp2++= *cp1++;                               /* normal character   */
@


1.6
log
@Upgrade to 2.01.05
@
text
@d2 43
a44 1
+++ webalizer.c	Sun Oct  8 00:16:19 2000
d54 9
@


1.5
log
@Upgrade to 2.01.03
@
text
@d1 3
a3 3
--- webalizer.c.bak	Fri Sep 29 10:20:21 2000
+++ webalizer.c	Sat Sep 30 18:11:19 2000
@@@@ -1807,7 +1807,7 @@@@
d7 1
a7 1
-         *cp2++=tolower(*cp1++);                       /* normal character   */
d9 1
a11 1
    *cp2=0; cp2=tmpbuf;
@


1.4
log
@Upgrade to 2.01.02
@
text
@d1 3
a3 11
--- webalizer.c.orig	Wed Sep 27 20:26:30 2000
+++ webalizer.c	Thu Sep 28 17:41:01 2000
@@@@ -61,6 +61,7 @@@@
 #endif
 
 #ifdef USE_DNS
+#include <netinet/in.h>
 #include <arpa/inet.h>
 
 #ifdef HAVE_DB_185_H
@@@@ -1798,7 +1799,7 @@@@
d8 1
a8 1
+	 *cp2++= *cp1++;                       /* normal character   */
@


1.3
log
@do not lowercase search strings
@
text
@d1 2
a2 2
--- webalizer.c.orig	Sun Apr  9 05:18:56 2000
+++ webalizer.c	Fri Apr 21 23:11:15 2000
d11 1
a11 10
@@@@ -480,7 +481,7 @@@@
       else
       {
          /* Using DNS cache file <filaneme> */
-         if (verbose) printf("%s %s\n",msg_dns_usec,dns_cache);
+	 if (verbose>1) printf("%s %s\n",msg_dns_usec,dns_cache);
       }
    }
 #endif  /* USE_DNS */
@@@@ -1785,7 +1786,7 @@@@
@


1.2
log
@too verbose for DNS
@
text
@d2 1
a2 1
+++ webalizer.c	Thu Apr 20 05:46:49 2000
d20 9
@


1.1
log
@Add NO_LATEST_LINK and missing patches
@
text
@d1 2
a2 2
--- webalizer.c.bak	Tue Apr 18 07:34:50 2000
+++ webalizer.c	Tue Apr 18 07:38:58 2000
d11 9
@

