svn commit: r433020 - head/mail/bincimap/files

Jan Beich jbeich at FreeBSD.org
Wed Feb 1 12:29:49 UTC 2017


Author: jbeich
Date: Wed Feb  1 12:29:47 2017
New Revision: 433020
URL: https://svnweb.freebsd.org/changeset/ports/433020

Log:
  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

Modified:
  head/mail/bincimap/files/patch-src_convert.h   (contents, props changed)

Modified: head/mail/bincimap/files/patch-src_convert.h
==============================================================================
--- head/mail/bincimap/files/patch-src_convert.h	Wed Feb  1 12:29:37 2017	(r433019)
+++ head/mail/bincimap/files/patch-src_convert.h	Wed Feb  1 12:29:47 2017	(r433020)
@@ -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;


More information about the svn-ports-all mailing list