summaryrefslogtreecommitdiff
path: root/net-analyzer/poink/files/poink-2.03-signed-char-fixup.patch
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/poink/files/poink-2.03-signed-char-fixup.patch')
-rw-r--r--net-analyzer/poink/files/poink-2.03-signed-char-fixup.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/net-analyzer/poink/files/poink-2.03-signed-char-fixup.patch b/net-analyzer/poink/files/poink-2.03-signed-char-fixup.patch
new file mode 100644
index 000000000000..543e58bb184e
--- /dev/null
+++ b/net-analyzer/poink/files/poink-2.03-signed-char-fixup.patch
@@ -0,0 +1,13 @@
+diff -Nuar poink-2.03.orig/poink.c poink-2.03/poink.c
+--- poink-2.03.orig/poink.c 2002-11-03 03:12:56.000000000 -0800
++++ poink-2.03/poink.c 2007-06-11 11:59:09.763490735 -0700
+@@ -109,7 +109,8 @@
+ SOCKADDR_IN s;
+ struct timeval ping_start, ping_end;
+ struct sigaction siga;
+- char ch, pingerror[100];
++ signed char ch; // EOF is -1
++ char pingerror[100];
+ int delay=DEF_DELAY,timeout=DEF_TIMEOUT;
+ int suck, tmp, port=65535;
+