From 17e82681588151572e451b0daf68fd568531d3e4 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 15 Dec 2023 08:46:53 +0000 Subject: gentoo auto-resync : 15:12:2023 - 08:46:53 --- .../files/dsniff-2.4_beta1_p31-c99-fixes.patch | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 net-analyzer/dsniff/files/dsniff-2.4_beta1_p31-c99-fixes.patch (limited to 'net-analyzer/dsniff/files') diff --git a/net-analyzer/dsniff/files/dsniff-2.4_beta1_p31-c99-fixes.patch b/net-analyzer/dsniff/files/dsniff-2.4_beta1_p31-c99-fixes.patch new file mode 100644 index 000000000000..f77d21ea9510 --- /dev/null +++ b/net-analyzer/dsniff/files/dsniff-2.4_beta1_p31-c99-fixes.patch @@ -0,0 +1,36 @@ +# Gentoo bug: https://bugs.gentoo.org/919503 + +diff --git a/tcpkill.c b/tcpkill.c +index 1a64d40..de7ad00 100644 +--- a/tcpkill.c ++++ b/tcpkill.c +@@ -19,6 +19,7 @@ + #include + #include + #include ++#include + + #include "pcaputil.h" + #include "version.h" +@@ -84,7 +85,7 @@ tcp_kill_cb(u_char *user, const struct pcap_pkthdr *pcap, const u_char *pkt) + if (libnet_write(l) < 0) + warn("write"); + +- fprintf(stderr, "%s R %lu:%lu(0) win 0\n", ctext, seq, seq); ++ fprintf(stderr, "%s R %"PRIu32":%"PRIu32"(0) win 0\n", ctext, seq, seq); + } + } + +diff --git a/urlsnarf.c b/urlsnarf.c +index f46ccf8..d57b9dd 100644 +--- a/urlsnarf.c ++++ b/urlsnarf.c +@@ -341,7 +341,7 @@ main(int argc, char *argv[]) + } + + struct pcap_pkthdr *h; +- u_char *d; ++ const u_char *d; + int rc; + while ((rc = pcap_next_ex(p, &h, &d)) == 1) { + tt = h->ts.tv_sec; -- cgit v1.2.3