aboutsummaryrefslogtreecommitdiffstats
path: root/irc/quirc
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2017-02-01 20:29:56 +0800
committerjbeich <jbeich@FreeBSD.org>2017-02-01 20:29:56 +0800
commit5f2c9966321adf26561fc1f87732dfb97e7f5d2b (patch)
tree9d10bce1e6efc2387374b95fbb17e36c5741af9f /irc/quirc
parentf49fbb59281ca7ab99103213717b29a12a7f00f0 (diff)
downloadfreebsd-ports-gnome-5f2c9966321adf26561fc1f87732dfb97e7f5d2b.tar.gz
freebsd-ports-gnome-5f2c9966321adf26561fc1f87732dfb97e7f5d2b.tar.zst
freebsd-ports-gnome-5f2c9966321adf26561fc1f87732dfb97e7f5d2b.zip
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
Diffstat (limited to 'irc/quirc')
-rw-r--r--irc/quirc/files/patch-servertcl.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/irc/quirc/files/patch-servertcl.cc b/irc/quirc/files/patch-servertcl.cc
index 64c730463ead..af9dafa8cdfe 100644
--- a/irc/quirc/files/patch-servertcl.cc
+++ b/irc/quirc/files/patch-servertcl.cc
@@ -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) {