diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2017-02-01 12:29:47 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2017-02-01 12:29:47 +0000 |
commit | 9a585dc44e4b42c867bbebae34eec99a38a1e138 (patch) | |
tree | 86ba6ad75d6fa9cda5b795efce61718a8ea1aeec /mail/bincimap | |
parent | bdc5bab76553c4c8ce67f9e83e560b27446df189 (diff) | |
download | ports-9a585dc44e4b42c867bbebae34eec99a38a1e138.tar.gz ports-9a585dc44e4b42c867bbebae34eec99a38a1e138.zip |
mail/bincimap: unbreak with libc++ 3.9
In file included from address.cc:39:
./convert.h:117:14: error: assigning to 'char *' from incompatible type 'const char *'
if ((t = strchr(hexchars, c)) == 0)
^ ~~~~~~~~~~~~~~~~~~~
./convert.h:122:14: error: assigning to 'char *' from incompatible type 'const char *'
if ((t = strchr(hexchars, d)) == 0)
^ ~~~~~~~~~~~~~~~~~~~
Reported by: pkg-fallout
Notes
Notes:
svn path=/head/; revision=433020
Diffstat (limited to 'mail/bincimap')
-rw-r--r-- | mail/bincimap/files/patch-src_convert.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mail/bincimap/files/patch-src_convert.h b/mail/bincimap/files/patch-src_convert.h index 75f0a9dc998c..d239888ce61f 100644 --- a/mail/bincimap/files/patch-src_convert.h +++ b/mail/bincimap/files/patch-src_convert.h @@ -9,3 +9,12 @@ #include <sys/stat.h> #include "address.h" +@@ -113,7 +113,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; |