mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
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
25 lines
637 B
C++
25 lines
637 B
C++
--- servertcl.cc.orig Thu May 22 14:12:56 2003
|
|
+++ servertcl.cc Thu May 22 14:13:04 2003
|
|
@@ -1,3 +1,4 @@
|
|
+#include <ctype.h>
|
|
#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) {
|