1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-17 08:01:36 +00:00

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
This commit is contained in:
Jan Beich 2017-02-01 20:21:01 +00:00
parent 267a48c240
commit efec6e852f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=433090

View File

@ -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;
}