aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2006-12-14 17:43:21 +0800
committerdinoex <dinoex@FreeBSD.org>2006-12-14 17:43:21 +0800
commit598cf5286e028da7d2bc3fc1fe33dfc55e1279be (patch)
tree589df62b3b92e5928b8f0d4524cee755fe1b11a8 /net-p2p
parent62c417139357b6a5efe3fa7a9af474fd2e76a12e (diff)
downloadfreebsd-ports-graphics-598cf5286e028da7d2bc3fc1fe33dfc55e1279be.tar.gz
freebsd-ports-graphics-598cf5286e028da7d2bc3fc1fe33dfc55e1279be.tar.zst
freebsd-ports-graphics-598cf5286e028da7d2bc3fc1fe33dfc55e1279be.zip
- fix build with gcc41 again, new snapshots are more pedantic
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/ed2k/files/patch-ed2k.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/net-p2p/ed2k/files/patch-ed2k.c b/net-p2p/ed2k/files/patch-ed2k.c
index ce2a6d08506..9bb5559df8a 100644
--- a/net-p2p/ed2k/files/patch-ed2k.c
+++ b/net-p2p/ed2k/files/patch-ed2k.c
@@ -1,5 +1,5 @@
--- ed2k.c.orig Sun Jun 13 19:47:20 2004
-+++ ed2k.c Sat Oct 7 20:04:07 2006
++++ ed2k.c Thu Dec 14 10:40:21 2006
@@ -32,7 +32,7 @@
#include <sys/stat.h>
@@ -40,7 +40,7 @@
static char *progname;
-@@ -86,7 +97,7 @@
+@@ -86,16 +97,16 @@
}
@@ -49,12 +49,14 @@
return ((q >= 10) ? 'W' : '0') + q;
}
-@@ -95,7 +106,7 @@
+-char *digest_str(void *digest) {
++char *digest_str(unsigned char *digest) {
+ static char internal_str[sizeof(md4_t)*2 + 1];
char *str = internal_str;
int dsize = sizeof(md4_t);
while (dsize--) {
- unsigned char d = *((unsigned char *)digest)++;
-+ unsigned char d = *(((unsigned char *)digest)++);
++ unsigned char d = *(digest++);
*(str++) = hdigit(d >> 4 );
*(str++) = hdigit(d & 0xf);
}