From 52b86922f8466e4641b55ba17eab56522b46e6f4 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 6 Jul 2022 14:40:20 +0930 Subject: [PATCH] ccan/base64: fix GCC warning. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ``` ccan/ccan/base64/base64.c:146:71: error: argument 2 of type ‘char[3]’ with mismatched bound [-Werror=array-parameter=] 146 | ssize_t base64_decode_tail_using_maps(const base64_maps_t *maps, char dest[3], | ~~~~~^~~~~~~ In file included from ccan/ccan/base64/base64.c:2: ccan/ccan/base64/base64.h:119:72: note: previously declared as ‘char *’ 119 | ssize_t base64_decode_tail_using_maps(const base64_maps_t *maps, char *dest, | ~~~~~~^~~~ cc1: all warnings being treated as errors make: *** [Makefile:817: ccan-base64.o] Error 1 ``` Signed-off-by: Rusty Russell --- ccan/base64/base64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccan/base64/base64.h b/ccan/base64/base64.h index cef30d25..a899af4a 100644 --- a/ccan/base64/base64.h +++ b/ccan/base64/base64.h @@ -116,7 +116,7 @@ ssize_t base64_decode_quartet_using_maps(const base64_maps_t *maps, * @note sets errno = EDOM if src contains invalid characters * @note sets errno = EINVAL if src is an invalid base64 tail */ -ssize_t base64_decode_tail_using_maps(const base64_maps_t *maps, char *dest, +ssize_t base64_decode_tail_using_maps(const base64_maps_t *maps, char dest[3], const char *src, size_t srclen); -- 2.39.2