Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 1 | From a1b9bb4af819ed389675f16e4a521efeda4cc3f3 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sat, 27 Mar 2021 22:10:48 -0700 |
| 4 | Subject: [PATCH] do not export the CHARS_PER_LINE variable |
| 5 | |
| 6 | The library exports a variable named "CHARS_PER_LINE". This is a generic name that could conflict with a name in user's code. |
| 7 | Please either rename the variable or make it static. |
| 8 | |
| 9 | Upstream-Status: Submitted [http://sourceforge.net/tracker/?func=detail&aid=3591420&group_id=152942&atid=785907] |
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 11 | --- |
| 12 | src/cencode.c | 2 +- |
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 14 | |
| 15 | diff --git a/src/cencode.c b/src/cencode.c |
| 16 | index 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 | { |