summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2021-10-22 09:51:55 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2021-10-22 09:51:55 +0000
commit2b8a630f249ee78e0460fb7bed22af4c28847729 (patch)
tree44cb42ade9036ff916965ad9acb2586a547a3ee1
parent6935345c2c93a4e1e0642348678beeffbb887bbf (diff)
Fix some ghastly whitespace. From Martin Vahlensieck
-rw-r--r--lib/libc/net/base64.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/net/base64.c b/lib/libc/net/base64.c
index 5f4003d7c1a..7bfcb214d95 100644
--- a/lib/libc/net/base64.c
+++ b/lib/libc/net/base64.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: base64.c,v 1.10 2021/10/22 09:49:26 tb Exp $ */
+/* $OpenBSD: base64.c,v 1.11 2021/10/22 09:51:54 tb Exp $ */
/*
* Copyright (c) 1996 by Internet Software Consortium.
@@ -103,9 +103,9 @@ static const char Pad64 = '=';
end of the data is performed using the '=' character.
Since all base64 input is an integral number of octets, only the
- -------------------------------------------------
+ -------------------------------------------------
following cases can arise:
-
+
(1) the final quantum of encoding input is an integral
multiple of 24 bits; here, the final unit of encoded
output will be an integral multiple of 4 characters
@@ -148,14 +148,14 @@ b64_ntop(src, srclength, target, targsize)
target[datalength++] = Base64[output[2]];
target[datalength++] = Base64[output[3]];
}
-
+
/* Now we worry about padding. */
if (0 != srclength) {
/* Get what's left. */
input[0] = input[1] = input[2] = '\0';
for (i = 0; i < srclength; i++)
input[i] = *src++;
-
+
output[0] = input[0] >> 2;
output[1] = ((input[0] & 0x03) << 4) + (input[1] >> 4);
output[2] = ((input[1] & 0x0f) << 2) + (input[2] >> 6);
@@ -203,7 +203,7 @@ b64_pton(src, target, targsize)
break;
pos = strchr(Base64, ch);
- if (pos == 0) /* A non-base64 character. */
+ if (pos == 0) /* A non-base64 character. */
return (-1);
switch (state) {