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
This commit is contained in:
parent
bdc5bab765
commit
9a585dc44e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=433020
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue