blob: 9ba08c87ee75c71145f2790e74cfe2fab827d435 [file] [log] [blame]
Andrew Geissler32b11992021-03-31 13:37:05 -05001From a1b9bb4af819ed389675f16e4a521efeda4cc3f3 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 27 Mar 2021 22:10:48 -0700
4Subject: [PATCH] do not export the CHARS_PER_LINE variable
5
6The library exports a variable named "CHARS_PER_LINE". This is a generic name that could conflict with a name in user's code.
7Please either rename the variable or make it static.
8
9Upstream-Status: Submitted [http://sourceforge.net/tracker/?func=detail&aid=3591420&group_id=152942&atid=785907]
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 src/cencode.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/src/cencode.c b/src/cencode.c
16index 03ba5b6..3df62a8 100644
17--- a/src/cencode.c
18+++ b/src/cencode.c
19@@ -7,7 +7,7 @@ For details, see http://sourceforge.net/projects/libb64
20
21 #include <b64/cencode.h>
22
23-const int CHARS_PER_LINE = 72;
24+static const int CHARS_PER_LINE = 72;
25
26 void base64_init_encodestate(base64_encodestate* state_in)
27 {