]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
checkpoint
authorMark Andrews <marka@isc.org>
Tue, 3 Apr 2001 13:46:25 +0000 (13:46 +0000)
committerMark Andrews <marka@isc.org>
Tue, 3 Apr 2001 13:46:25 +0000 (13:46 +0000)
lib/bind/resolv/res_debug.c

index ee28a8e99cdb1782b9789e4f5bf42777da096139..8c4b85e7cbb1f161f3326cace930d6ae9cdc3861 100644 (file)
@@ -95,7 +95,7 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static const char sccsid[] = "@(#)res_debug.c  8.1 (Berkeley) 6/4/93";
-static const char rcsid[] = "$Id: res_debug.c,v 1.1 2001/03/29 06:31:58 marka Exp $";
+static const char rcsid[] = "$Id: res_debug.c,v 1.2 2001/04/03 13:46:25 marka Exp $";
 #endif /* LIBC_SCCS and not lint */
 
 #include "port_before.h"
@@ -663,14 +663,14 @@ precsize_aton(strptr)
 
        cp = *strptr;
 
-       while (isdigit(*cp))
+       while (isdigit((unsigned char)*cp))
                mval = mval * 10 + (*cp++ - '0');
 
        if (*cp == '.') {               /* centimeters */
                cp++;
-               if (isdigit(*cp)) {
+               if (isdigit((unsigned char)*cp)) {
                        cmval = (*cp++ - '0') * 10;
-                       if (isdigit(*cp)) {
+                       if (isdigit((unsigned char)*cp)) {
                                cmval += (*cp++ - '0');
                        }
                }
@@ -704,44 +704,44 @@ latlon2ul(latlonstrptr,which)
 
        cp = *latlonstrptr;
 
-       while (isdigit(*cp))
+       while (isdigit((unsigned char)*cp))
                deg = deg * 10 + (*cp++ - '0');
 
-       while (isspace(*cp))
+       while (isspace((unsigned char)*cp))
                cp++;
 
-       if (!(isdigit(*cp)))
+       if (!(isdigit((unsigned char)*cp)))
                goto fndhemi;
 
-       while (isdigit(*cp))
+       while (isdigit((unsigned char)*cp))
                min = min * 10 + (*cp++ - '0');
 
-       while (isspace(*cp))
+       while (isspace((unsigned char)*cp))
                cp++;
 
-       if (!(isdigit(*cp)))
+       if (!(isdigit((unsigned char)*cp)))
                goto fndhemi;
 
-       while (isdigit(*cp))
+       while (isdigit((unsigned char)*cp))
                secs = secs * 10 + (*cp++ - '0');
 
        if (*cp == '.') {               /* decimal seconds */
                cp++;
-               if (isdigit(*cp)) {
+               if (isdigit((unsigned char)*cp)) {
                        secsfrac = (*cp++ - '0') * 100;
-                       if (isdigit(*cp)) {
+                       if (isdigit((unsigned char)*cp)) {
                                secsfrac += (*cp++ - '0') * 10;
-                               if (isdigit(*cp)) {
+                               if (isdigit((unsigned char)*cp)) {
                                        secsfrac += (*cp++ - '0');
                                }
                        }
                }
        }
 
-       while (!isspace(*cp))   /* if any trailing garbage */
+       while (!isspace((unsigned char)*cp))    /* if any trailing garbage */
                cp++;
 
-       while (isspace(*cp))
+       while (isspace((unsigned char)*cp))
                cp++;
 
  fndhemi:
@@ -779,10 +779,10 @@ latlon2ul(latlonstrptr,which)
 
        cp++;                   /* skip the hemisphere */
 
-       while (!isspace(*cp))   /* if any trailing garbage */
+       while (!isspace((unsigned char)*cp))    /* if any trailing garbage */
                cp++;
 
-       while (isspace(*cp))    /* move to next field */
+       while (isspace((unsigned char)*cp))     /* move to next field */
                cp++;
 
        *latlonstrptr = cp;
@@ -840,14 +840,14 @@ loc_aton(ascii, binary)
        if (*cp == '+')
                cp++;
 
-       while (isdigit(*cp))
+       while (isdigit((unsigned char)*cp))
                altmeters = altmeters * 10 + (*cp++ - '0');
 
        if (*cp == '.') {               /* decimal meters */
                cp++;
-               if (isdigit(*cp)) {
+               if (isdigit((unsigned char)*cp)) {
                        altfrac = (*cp++ - '0') * 10;
-                       if (isdigit(*cp)) {
+                       if (isdigit((unsigned char)*cp)) {
                                altfrac += (*cp++ - '0');
                        }
                }
@@ -855,10 +855,10 @@ loc_aton(ascii, binary)
 
        alt = (10000000 + (altsign * (altmeters * 100 + altfrac)));
 
-       while (!isspace(*cp) && (cp < maxcp)) /* if trailing garbage or m */
+       while (!isspace((unsigned char)*cp) && (cp < maxcp)) /* if trailing garbage or m */
                cp++;
 
-       while (isspace(*cp) && (cp < maxcp))
+       while (isspace((unsigned char)*cp) && (cp < maxcp))
                cp++;
 
        if (cp >= maxcp)
@@ -866,10 +866,10 @@ loc_aton(ascii, binary)
 
        siz = precsize_aton(&cp);
        
-       while (!isspace(*cp) && (cp < maxcp))   /* if trailing garbage or m */
+       while (!isspace((unsigned char)*cp) && (cp < maxcp))    /* if trailing garbage or m */
                cp++;
 
-       while (isspace(*cp) && (cp < maxcp))
+       while (isspace((unsigned char)*cp) && (cp < maxcp))
                cp++;
 
        if (cp >= maxcp)
@@ -877,10 +877,10 @@ loc_aton(ascii, binary)
 
        hp = precsize_aton(&cp);
 
-       while (!isspace(*cp) && (cp < maxcp))   /* if trailing garbage or m */
+       while (!isspace((unsigned char)*cp) && (cp < maxcp))    /* if trailing garbage or m */
                cp++;
 
-       while (isspace(*cp) && (cp < maxcp))
+       while (isspace((unsigned char)*cp) && (cp < maxcp))
                cp++;
 
        if (cp >= maxcp)