irc/quirc: unbreak with libc++ 3.9

servertcl.cc:890:12: error: assigning to 'char *' from incompatible type 'const char *'
        while((pos=strstr(afterslash,"/"))) afterslash=pos+1;;
                  ^~~~~~~~~~~~~~~~~~~~~~~
servertcl.cc:1010:12: error: assigning to 'char *' from incompatible type 'const char *'
        while((pos=strstr(afterslash,"/"))) afterslash=pos+1;;
                  ^~~~~~~~~~~~~~~~~~~~~~~

Reported by:	pkg-fallout
This commit is contained in:
Jan Beich 2017-02-01 12:29:56 +00:00
parent 9a585dc44e
commit 6e4b3d2141
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=433021

View file

@ -5,3 +5,21 @@
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
@@ -877,7 +878,7 @@ int TT_Proc___template__script(TT_PROC_A
twindow *windowp;
char temp[TEMPLEN];
char assemble[TEMPLEN];
- char *pos;
+ const char *pos;
const char *afterslash;
int n;
if(argc>=3) {
@@ -997,7 +998,7 @@ int TT_Proc___template__unscript(TT_PROC
twindow *windowp;
char temp[TEMPLEN];
char storage[TEMPLEN];
- char *pos;
+ const char *pos;
const char *afterslash;
int n;
if(argc>=3) {