OSSP CVS Repository

ossp - Check-in [4293]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4293
Date: 2001-Aug-08 13:50:16 (local)
2001-Aug-08 11:50:16 (UTC)
User:simons
Branch:
Comment: Fixed warnings that complained about feeding a "char" into the isxxx() routines, which expect an "int".
Tickets:
Inspections:
Files:
ossp-pkg/xds/register.c      1.8->removed
ossp-pkg/xds/unregister.c      1.6->removed
ossp-pkg/xds/vdecode.c      1.5->removed
ossp-pkg/xds/vencode.c      1.13->removed
ossp-pkg/xds/xml-decode-int32.c      1.4->removed
ossp-pkg/xds/xml-decode-int64.c      1.5->removed
ossp-pkg/xds/xml-decode-uint32.c      1.4->removed
ossp-pkg/xds/xml-decode-uint64.c      1.5->removed

ossp-pkg/xds/register.c 1.8 -> 1.9

--- register.c   2001/08/02 10:51:57     1.8
+++ register.c   2001/08/08 11:50:16     1.9
@@ -40,7 +40,7 @@
     xds_check_parameter(engine != NULL);
     for(pos = 0; name[pos] != '\0'; ++pos)
         {
-        if (!isalnum(name[pos]) && name[pos] != '-' && name[pos] != '_')
+        if (!isalnum((int)name[pos]) && name[pos] != '-' && name[pos] != '_')
             return XDS_ERR_INVALID_ARG;
         }
 


ossp-pkg/xds/unregister.c 1.6 -> 1.7

--- unregister.c 2001/08/02 10:51:57     1.6
+++ unregister.c 2001/08/08 11:50:16     1.7
@@ -40,7 +40,7 @@
     xds_check_parameter(name != NULL);
     for(pos = 0; name[pos] != '\0'; ++pos)
         {
-        if (!isalnum(name[pos]) && name[pos] != '-' && name[pos] != '_')
+        if (!isalnum((int)name[pos]) && name[pos] != '-' && name[pos] != '_')
             return XDS_ERR_INVALID_ARG;
         }
 


ossp-pkg/xds/vdecode.c 1.5 -> 1.6

--- vdecode.c    2001/08/01 15:25:47     1.5
+++ vdecode.c    2001/08/08 11:50:16     1.6
@@ -59,7 +59,7 @@
     buffer_len_backup = xds->buffer_len;
     for(name = p; *p != '\0'; name = p)
         {
-        while(isalnum(*p) || *p == '-' || *p == '_')
+        while(isalnum((int)*p) || *p == '-' || *p == '_')
             ++p;
         if (*p)
             *p++ = '\0';


ossp-pkg/xds/vencode.c 1.13 -> 1.14

--- vencode.c    2001/08/01 15:25:47     1.13
+++ vencode.c    2001/08/08 11:50:16     1.14
@@ -71,7 +71,7 @@
     buffer_len_backup = xds->buffer_len;
     for(name = p; *p != '\0'; name = p)
         {
-        while(isalnum(*p) || *p == '-' || *p == '_')
+        while(isalnum((int)*p) || *p == '-' || *p == '_')
             ++p;
         if (*p)
             *p++ = '\0';


ossp-pkg/xds/xml-decode-int32.c 1.4 -> 1.5

--- xml-decode-int32.c   2001/08/02 08:10:13     1.4
+++ xml-decode-int32.c   2001/08/08 11:50:16     1.5
@@ -56,7 +56,7 @@
         }
     else
         negative = XDS_FALSE;
-    while(isdigit(*p))
+    while(isdigit((int)*p))
         {
         if (p >= (char*)buffer + buffer_size)
             return XDS_ERR_UNDERFLOW;


ossp-pkg/xds/xml-decode-int64.c 1.5 -> 1.6

--- xml-decode-int64.c   2001/08/02 08:10:13     1.5
+++ xml-decode-int64.c   2001/08/08 11:50:16     1.6
@@ -56,7 +56,7 @@
         }
     else
         negative = XDS_FALSE;
-    while(isdigit(*p))
+    while(isdigit((int)*p))
         {
         if (p >= (char*)buffer + buffer_size)
             return XDS_ERR_UNDERFLOW;


ossp-pkg/xds/xml-decode-uint32.c 1.4 -> 1.5

--- xml-decode-uint32.c  2001/08/02 08:10:13     1.4
+++ xml-decode-uint32.c  2001/08/08 11:50:16     1.5
@@ -48,7 +48,7 @@
     value = va_arg(*args, xds_uint32_t*);
     *value = 0;
     p = (char*)buffer + 8;
-    while(isdigit(*p))
+    while(isdigit((int)*p))
         {
         if (p >= (char*)buffer + buffer_size)
             return XDS_ERR_UNDERFLOW;


ossp-pkg/xds/xml-decode-uint64.c 1.5 -> 1.6

--- xml-decode-uint64.c  2001/08/02 08:10:13     1.5
+++ xml-decode-uint64.c  2001/08/08 11:50:16     1.6
@@ -48,7 +48,7 @@
     value = va_arg(*args, xds_uint64_t*);
     *value = 0;
     p = (char*)buffer + 8;
-    while(isdigit(*p))
+    while(isdigit((int)*p))
         {
         if (p >= (char*)buffer + buffer_size)
             return XDS_ERR_UNDERFLOW;

CVSTrac 2.0.1