summaryrefslogtreecommitdiff
path: root/net-analyzer/poink/files/poink-2.03-signed-char-fixup.patch
blob: deaff51bcf8671d00e62097e4cf0bfde7fcb99db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff -Nuar poink-2.03.orig/poink.c poink-2.03/poink.c
--- a/poink.c	2002-11-03 03:12:56.000000000 -0800
+++ b/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;