summaryrefslogtreecommitdiffstats
path: root/net-misc/d4x/files/d4x-2.5.7.1-ds-compile.patch
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/d4x/files/d4x-2.5.7.1-ds-compile.patch')
-rw-r--r--net-misc/d4x/files/d4x-2.5.7.1-ds-compile.patch96
1 files changed, 96 insertions, 0 deletions
diff --git a/net-misc/d4x/files/d4x-2.5.7.1-ds-compile.patch b/net-misc/d4x/files/d4x-2.5.7.1-ds-compile.patch
new file mode 100644
index 0000000..b4620d0
--- /dev/null
+++ b/net-misc/d4x/files/d4x-2.5.7.1-ds-compile.patch
@@ -0,0 +1,96 @@
+diff -dPNur d4x-2.5.7.1/main/face/edit.cc d4x-2.5.7.1-ds/main/face/edit.cc
+--- d4x-2.5.7.1/main/face/edit.cc 2006-03-20 01:10:36.000000000 +0100
++++ d4x-2.5.7.1-ds/main/face/edit.cc 2011-10-09 12:34:07.000000000 +0200
+@@ -1450,7 +1450,7 @@
+
+ static void _proxy_port_changed_(GtkEntry *entry,GtkEntry *entryh){
+ const char *tmp=gtk_entry_get_text(entryh);
+- char *tmp1=index(tmp,':');
++ char *tmp1=(char*)index(tmp,':');
+ if (tmp1){
+ *tmp1=0;
+ char *ns=sum_strings(tmp,":",gtk_entry_get_text(entry),NULL);
+diff -dPNur d4x-2.5.7.1/main/ftp.cc d4x-2.5.7.1-new/main/ftp.cc
+--- d4x-2.5.7.1/main/ftp.cc 2006-04-05 21:11:45.000000000 +0200
++++ d4x-2.5.7.1-new/main/ftp.cc 2011-10-09 12:41:22.000000000 +0200
+@@ -261,7 +261,7 @@
+ };
+
+ static void d4x_ftp_parse_pasv(const char *str,int args[]){
+- char *a=index(str,'(');
++ char *a=(char*)index(str,'(');
+ if (a==NULL) return;
+ a+=1;
+ int i=0;
+diff -dPNur d4x-2.5.7.1/main/html.cc d4x-2.5.7.1-new/main/html.cc
+--- d4x-2.5.7.1/main/html.cc 2005-09-13 07:42:40.000000000 +0200
++++ d4x-2.5.7.1-new/main/html.cc 2011-10-09 12:38:50.000000000 +0200
+@@ -700,7 +700,7 @@
+
+ void tHtmlParser::set_content_type(const char *ct){
+ //Example: text/html; charset=koi8-r
+- char *a=index(ct,'=');
++ char *a=(char*)index(ct,'=');
+ if (a) codepage=a+1;
+ };
+
+diff -dPNur d4x-2.5.7.1/main/locstr.cc d4x-2.5.7.1-new/main/locstr.cc
+--- d4x-2.5.7.1/main/locstr.cc 2005-11-11 22:38:45.000000000 +0100
++++ d4x-2.5.7.1-new/main/locstr.cc 2011-10-09 12:40:33.000000000 +0200
+@@ -281,7 +281,7 @@
+ DBC_RETVAL_IF_FAIL(str!=NULL,NULL);
+ DBC_RETVAL_IF_FAIL(what!=NULL,NULL);
+ while (*str){
+- char *a=index(what,*str);
++ char *a=(char*)index(what,*str);
+ if (a) return(str);
+ str++;
+ };
+@@ -472,7 +472,7 @@
+ char *escape_char(const char *where,char what,char bywhat){
+ DBC_RETVAL_IF_FAIL(where!=NULL,NULL);
+ int num=0;
+- char *tmp=index(where,what);
++ char *tmp=(char*)index(where,what);
+ while(tmp){
+ num+=1;
+ tmp=index(tmp+1,what);
+@@ -481,7 +481,7 @@
+ char *rvalue=new char[strlen(where)+num*2+1];
+ *rvalue=0;
+ char *r=rvalue;
+- tmp=index(where,what);
++ tmp=(char*)index(where,what);
+ while(tmp){
+ if (tmp-where)
+ memcpy(r,where,tmp-where);
+@@ -490,7 +490,7 @@
+ r[1]=what;
+ r+=2;
+ where=tmp+1;
+- tmp=index(where,what);
++ tmp=(char*)index(where,what);
+ };
+ *r=0;
+ if (*where)
+@@ -962,17 +962,17 @@
+ DBC_RETVAL_IF_FAIL(a!=NULL,NULL);
+ DBC_RETVAL_IF_FAIL(b!=NULL,NULL);
+ int i=0;
+- char *temp=index(b,'/');
++ char *temp=(char*)index(b,'/');
+ while (temp){
+ while (*temp=='/') temp+=1;
+ temp=index(temp,'/');
+ i+=1;
+ };
+ i-=1;
+- temp=rindex(a,'/');
++ temp=(char*)rindex(a,'/');
+ while (temp && i>0){
+ *temp=0;
+- char *tmp=rindex(a,'/');
++ char *tmp=(char*)rindex(a,'/');
+ *temp='/';
+ temp=tmp;
+ i-=1;