(b64_pton): Follow T1A but don't use this code since it would lead to
authordrepper <drepper>
Thu, 29 May 1997 11:54:03 +0000 (11:54 +0000)
committerdrepper <drepper>
Thu, 29 May 1997 11:54:03 +0000 (11:54 +0000)
warnings.

resolv/base64.c

index 5d9eb6e..4e7e2a0 100644 (file)
@@ -281,7 +281,12 @@ b64_pton(src, target, targsize)
 
                case 2:         /* Valid, means one byte of info */
                        /* Skip any number of spaces. */
+#ifdef _LIBC
+                       /* To avoid warnings.  */
                        for ( ; ch != '\0'; ch = *src++)
+#else
+                       for (NULL; ch != '\0'; ch = *src++)
+#endif
                                if (!isspace(ch))
                                        break;
                        /* Make sure there is another trailing = sign. */
@@ -296,7 +301,12 @@ b64_pton(src, target, targsize)
                         * We know this char is an =.  Is there anything but
                         * whitespace after it?
                         */
+#ifdef _LIBC
+                       /* To avoid warnings.  */
                        for ( ; ch != '\0'; ch = *src++)
+#else
+                       for (NULL; ch != '\0'; ch = *src++)
+#endif
                                if (!isspace(ch))
                                        return (-1);