summaryrefslogtreecommitdiff
path: root/src/utils/base64.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-24 18:28:47 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-24 21:06:51 +0300
commita306ecf96736779b08d1de7ec994d3d741d5dc61 (patch)
tree5a64809354d2c5f672a34fc9578975ab76920b5b /src/utils/base64.cpp
parent6053e0797465a15da30b8d645c8ac7c95b596c69 (diff)
downloadmanaverse-a306ecf96736779b08d1de7ec994d3d741d5dc61.tar.gz
manaverse-a306ecf96736779b08d1de7ec994d3d741d5dc61.tar.bz2
manaverse-a306ecf96736779b08d1de7ec994d3d741d5dc61.tar.xz
manaverse-a306ecf96736779b08d1de7ec994d3d741d5dc61.zip
fix code style.
Diffstat (limited to 'src/utils/base64.cpp')
-rw-r--r--src/utils/base64.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/utils/base64.cpp b/src/utils/base64.cpp
index fe3d1cb90..7cd22f732 100644
--- a/src/utils/base64.cpp
+++ b/src/utils/base64.cpp
@@ -97,7 +97,6 @@ unsigned char *php3_base64_decode(const unsigned char *const string,
{
const unsigned char *current = string;
int ch, i = 0, j = 0, k;
- const char *chp;
unsigned char *result = static_cast<unsigned char *>(
calloc(length + 1, 1));
@@ -120,7 +119,7 @@ unsigned char *php3_base64_decode(const unsigned char *const string,
if (ch == ' ') ch = '+';
- chp = strchr(base64_table, ch);
+ const char *const chp = strchr(base64_table, ch);
if (!chp)
continue;
ch = static_cast<int>(chp - base64_table);