diff options
Diffstat (limited to 'net/ntop1/patches/patch-ac')
-rw-r--r-- | net/ntop1/patches/patch-ac | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/net/ntop1/patches/patch-ac b/net/ntop1/patches/patch-ac new file mode 100644 index 00000000000..046203fad03 --- /dev/null +++ b/net/ntop1/patches/patch-ac @@ -0,0 +1,28 @@ +$NetBSD: patch-ac,v 1.1.1.1 2005/01/06 11:44:16 adam Exp $ + +--- pbuf.c.orig Mon May 3 17:43:09 1999 ++++ pbuf.c +@@ -843,20 +843,18 @@ + + int checkKeyPressed() { + int theChar = getch(); +- unsigned char in_char; + int rc = 1, numScreens; + +- if((theChar != EOF) +- && ((in_char = (unsigned char)theChar)) != 255) { ++ if((theChar != EOF) && (theChar != ERR)) { + + /* + char buf[32]; + +- sprintf(buf, ">%c-%d<", in_char, in_char); ++ sprintf(buf, ">%c-%d<", theChar, theChar); + mvprintw(0, 40, buf); refresh(); + sleep(2); + */ +- switch(in_char) { ++ switch(theChar) { + case 'q': + case 'Q': + cleanup(-1); |