projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e5b242
)
removed compiler warning
author
Holger Schemel
<info@artsoft.org>
Sat, 22 Oct 2022 09:58:48 +0000
(11:58 +0200)
committer
Holger Schemel
<info@artsoft.org>
Sat, 22 Oct 2022 09:58:48 +0000
(11:58 +0200)
This issue was found by using GCC with option "-Wextra".
src/libgame/base64.c
patch
|
blob
|
history
diff --git
a/src/libgame/base64.c
b/src/libgame/base64.c
index 485f81bc9e1ce64b4a4f74a566807f605487a2d4..c602fa0633da410d118773ab27f77564a6ca4fd4 100644
(file)
--- a/
src/libgame/base64.c
+++ b/
src/libgame/base64.c
@@
-50,7
+50,7
@@
#include "base64.h"
-
const static
char *b64encode =
+
static const
char *b64encode =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
int base64_encoded_size(int unencoded_size)
@@
-106,7
+106,7
@@
void base64_encode(char *encoded_data,
*ptr++= '\0';
}
-
const static
byte b64decode[] =
+
static const
byte b64decode[] =
{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 16