change strchr() return parameter to const for new libc
This commit is contained in:
parent
a267480e4a
commit
67a494ee54
@ -105,7 +105,7 @@ namespace Binc {
|
||||
unsigned char c = *i;
|
||||
unsigned char d = *(i + 1);
|
||||
|
||||
char *t;
|
||||
const char *t;
|
||||
if ((t = strchr(hexchars, c)) == 0)
|
||||
return "out of range";
|
||||
n = (t - hexchars) << 4;
|
||||
|
||||
@ -40,7 +40,7 @@ static const char Pad64 = '=';
|
||||
bool base64_decode(const string& in, string& out)
|
||||
{
|
||||
int io = 0, state = 0, ch = 0;
|
||||
char *pos;
|
||||
const char *pos;
|
||||
unsigned int ii = 0;
|
||||
out.erase();
|
||||
out.reserve(in.length());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user