]> diplodocus.org Git - nmh/blobdiff - sbr/m_atoi.c
If attaching a "message" content type, scan the content to see if it
[nmh] / sbr / m_atoi.c
index 174c40771f4bf3d6c6e5434345a1fa69980b79f2..da6730df5c5447615855755b54e257b43dac9a2d 100644 (file)
@@ -16,14 +16,10 @@ int
 m_atoi (char *str)
 {
     int i;
-    unsigned char *cp;
+    char *cp;
 
     for (i = 0, cp = str; *cp; cp++) {
-#ifdef LOCALE
-       if (!isdigit(*cp))
-#else
-       if (*cp < '0' || *cp > '9')
-#endif
+       if (!isdigit((unsigned char) *cp))
            return 0;
 
        i *= 10;