From 4c8b47ffdcd7495d1c7f69faf02741547db7d633 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 18 Feb 2016 16:38:54 +1100 Subject: [PATCH 1/1] base64: correct linkage of base64_maps_rfc4648 Two copies of this map meant only the tests would ever work. --- ccan/base64/base64.c | 2 +- ccan/base64/base64.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ccan/base64/base64.c b/ccan/base64/base64.c index af078bc7..a216f478 100644 --- a/ccan/base64/base64.c +++ b/ccan/base64/base64.c @@ -209,7 +209,7 @@ ssize_t base64_decode_using_maps(const base64_maps_t *maps, /** * base64_maps_rfc4648 - pregenerated maps struct for rfc4648 */ -static const base64_maps_t base64_maps_rfc4648 = { +const base64_maps_t base64_maps_rfc4648 = { "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", "\xff\xff\xff\xff\xff" /* 0 */ \ diff --git a/ccan/base64/base64.h b/ccan/base64/base64.h index 283c6e44..405dc63f 100644 --- a/ccan/base64/base64.h +++ b/ccan/base64/base64.h @@ -122,7 +122,7 @@ int base64_decode_tail_using_maps(const base64_maps_t *maps, char *dest, /* the rfc4648 functions: */ -static const base64_maps_t base64_maps_rfc4648; +extern const base64_maps_t base64_maps_rfc4648; /** * base64_encode - Encode a buffer into base64 according to rfc4648 -- 2.39.2