summaryrefslogtreecommitdiff
path: root/resolv/base64.c
diff options
context:
space:
mode:
Diffstat (limited to 'resolv/base64.c')
-rw-r--r--resolv/base64.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/resolv/base64.c b/resolv/base64.c
index 5d9eb6ec3d..4e7e2a06d5 100644
--- a/resolv/base64.c
+++ b/resolv/base64.c
@@ -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);