From 67a494ee54e079180fddaaa5035dd79d3f27c770 Mon Sep 17 00:00:00 2001 From: dockes Date: Fri, 29 May 2009 06:28:55 +0000 Subject: [PATCH] change strchr() return parameter to const for new libc --- src/bincimapmime/convert.h | 2 +- src/utils/base64.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bincimapmime/convert.h b/src/bincimapmime/convert.h index d1ab0231..ebb86601 100644 --- a/src/bincimapmime/convert.h +++ b/src/bincimapmime/convert.h @@ -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; diff --git a/src/utils/base64.cpp b/src/utils/base64.cpp index 7fccbac2..73e0abb4 100644 --- a/src/utils/base64.cpp +++ b/src/utils/base64.cpp @@ -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());