summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/base64.c
diff options
context:
space:
mode:
authormillert <>1997-07-09 01:08:53 +0000
committermillert <>1997-07-09 01:08:53 +0000
commit876d3a1be4aa406672cc674a171f26878319d505 (patch)
tree72a738d612791a6e60d74a474bca3bbbcac4828c /src/lib/libc/net/base64.c
parentfd3592b18f24103bfc82412a8950e5f06e549ff1 (diff)
downloadopenbsd-876d3a1be4aa406672cc674a171f26878319d505.tar.gz
openbsd-876d3a1be4aa406672cc674a171f26878319d505.tar.bz2
openbsd-876d3a1be4aa406672cc674a171f26878319d505.zip
Clean up some -Wall flowers.
Diffstat (limited to 'src/lib/libc/net/base64.c')
-rw-r--r--src/lib/libc/net/base64.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libc/net/base64.c b/src/lib/libc/net/base64.c
index 59788bee1b..a2055f5cc3 100644
--- a/src/lib/libc/net/base64.c
+++ b/src/lib/libc/net/base64.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: base64.c,v 1.1 1997/03/13 19:07:22 downsj Exp $ */ 1/* $OpenBSD: base64.c,v 1.2 1997/07/09 01:08:24 millert Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1996 by Internet Software Consortium. 4 * Copyright (c) 1996 by Internet Software Consortium.
@@ -278,7 +278,7 @@ b64_pton(src, target, targsize)
278 278
279 case 2: /* Valid, means one byte of info */ 279 case 2: /* Valid, means one byte of info */
280 /* Skip any number of spaces. */ 280 /* Skip any number of spaces. */
281 for (NULL; ch != '\0'; ch = *src++) 281 for (; ch != '\0'; ch = *src++)
282 if (!isspace(ch)) 282 if (!isspace(ch))
283 break; 283 break;
284 /* Make sure there is another trailing = sign. */ 284 /* Make sure there is another trailing = sign. */
@@ -293,7 +293,7 @@ b64_pton(src, target, targsize)
293 * We know this char is an =. Is there anything but 293 * We know this char is an =. Is there anything but
294 * whitespace after it? 294 * whitespace after it?
295 */ 295 */
296 for (NULL; ch != '\0'; ch = *src++) 296 for (; ch != '\0'; ch = *src++)
297 if (!isspace(ch)) 297 if (!isspace(ch))
298 return (-1); 298 return (-1);
299 299