From: tb Date: Fri, 22 Oct 2021 09:51:54 +0000 (+0000) Subject: Fix some ghastly whitespace. From Martin Vahlensieck X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a1b1f2c73df49e04e68b820d962a6e9bf566aec7;p=openbsd Fix some ghastly whitespace. From Martin Vahlensieck --- 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) {