svn commit: r433090 - head/converters/fix-mime-charset/files

Jan Beich jbeich at FreeBSD.org
Wed Feb 1 20:21:03 UTC 2017


Author: jbeich
Date: Wed Feb  1 20:21:01 2017
New Revision: 433090
URL: https://svnweb.freebsd.org/changeset/ports/433090

Log:
  converters/fix-mime-charset: unbreak with libc++ 3.9
  
  ./argp-local.h:69:7: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *'
  char *p=strrchr(arg,'/');
        ^ ~~~~~~~~~~~~~~~~
  
  Reported by:	pkg-fallout

Modified:
  head/converters/fix-mime-charset/files/patch-src_argp-local.h   (contents, props changed)

Modified: head/converters/fix-mime-charset/files/patch-src_argp-local.h
==============================================================================
--- head/converters/fix-mime-charset/files/patch-src_argp-local.h	Wed Feb  1 20:20:51 2017	(r433089)
+++ head/converters/fix-mime-charset/files/patch-src_argp-local.h	Wed Feb  1 20:21:01 2017	(r433090)
@@ -8,3 +8,12 @@
  
  #define __need_error_t
  #include <errno.h>
+@@ -65,7 +65,7 @@ const argp_option _argp_default_options[
+ 
+ string _argp_progname(const char *arg)
+ {
+-char *p=strrchr(arg,'/');
++const char *p=strrchr(arg,'/');
+ return p==NULL ? arg : p+1;
+ }
+ 


More information about the svn-ports-all mailing list