summaryrefslogtreecommitdiff
path: root/net-p2p/gtk-gnutella/files
diff options
context:
space:
mode:
authorDavid W. Chapman Jr. <dwcjr@FreeBSD.org>2001-11-23 04:26:59 +0000
committerDavid W. Chapman Jr. <dwcjr@FreeBSD.org>2001-11-23 04:26:59 +0000
commitbb3b4472fd2783a9c51a7c874edfe5eac4b77ee5 (patch)
treeb650b0d08cebda28ed71660775824391a29484f9 /net-p2p/gtk-gnutella/files
parentupgrade to 20011014 (diff)
New maintainer to this port.
Update to 0.18 PR: 32203 Submitted by: roman@xpert.com
Notes
Notes: svn path=/head/; revision=50393
Diffstat (limited to 'net-p2p/gtk-gnutella/files')
-rw-r--r--net-p2p/gtk-gnutella/files/patch-download.c28
-rw-r--r--net-p2p/gtk-gnutella/files/patch-main.c13
2 files changed, 28 insertions, 13 deletions
diff --git a/net-p2p/gtk-gnutella/files/patch-download.c b/net-p2p/gtk-gnutella/files/patch-download.c
new file mode 100644
index 000000000000..cb5f1927af04
--- /dev/null
+++ b/net-p2p/gtk-gnutella/files/patch-download.c
@@ -0,0 +1,28 @@
+--- src/downloads.c.orig Wed Oct 3 19:12:04 2001
++++ src/downloads.c Fri Oct 26 11:09:48 2001
+@@ -7,6 +7,8 @@
+
+ #include <sys/types.h>
+ #include <sys/stat.h>
++#include <netinet/in.h>
++#include <arpa/inet.h>
+ #include <fcntl.h>
+
+ GSList *sl_downloads = NULL;
+@@ -793,6 +795,7 @@
+ gboolean download_send_request(struct download *d)
+ {
+ gint rw;
++ struct sockaddr_in saddr;
+
+ g_return_val_if_fail(d, FALSE);
+
+@@ -821,6 +824,8 @@
+ d->record_index, d->file_name,
+ GTA_VERSION, GTA_SUBVERSION);
+
++ saddr.sin_addr.s_addr=htonl(d->ip);
++ printf("\n\n----Connected to %s:%d\n", inet_ntoa(saddr.sin_addr), d->port);
+ printf("----Sending Request:\n%.*s----\n", (int) rw, dl_tmp);
+ fflush(stdout);
+
diff --git a/net-p2p/gtk-gnutella/files/patch-main.c b/net-p2p/gtk-gnutella/files/patch-main.c
deleted file mode 100644
index 04dd4cea1053..000000000000
--- a/net-p2p/gtk-gnutella/files/patch-main.c
+++ /dev/null
@@ -1,13 +0,0 @@
---- src/main.c.old Sun Sep 23 09:57:23 2001
-+++ src/main.c Sun Sep 23 09:57:49 2001
-@@ -2,7 +2,10 @@
- #include "gnutella.h"
-
- #include <signal.h>
-+
-+#ifdef HAVE_MCHECK_H
- #include <mcheck.h>
-+#endif
-
- #include "interface.h"
- #include "support.h"