diff options
author | wiz <wiz@pkgsrc.org> | 2001-01-07 02:25:35 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2001-01-07 02:25:35 +0000 |
commit | 6589777df7767f72bc04dd1e63c2dfe5c6392200 (patch) | |
tree | 5cace4fe6c9c0b65da73324664cbc1398c1775d0 /net/ntop/patches | |
parent | 5c752750f76b259a2d0e010d3dd4cd892c1524d2 (diff) | |
download | pkgsrc-6589777df7767f72bc04dd1e63c2dfe5c6392200.tar.gz |
USE_CURSES instead of hardwired dependency on ncurses.
Patch by Charles Hannum.
Diffstat (limited to 'net/ntop/patches')
-rw-r--r-- | net/ntop/patches/patch-ac | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/net/ntop/patches/patch-ac b/net/ntop/patches/patch-ac new file mode 100644 index 00000000000..fcc1d2b5d83 --- /dev/null +++ b/net/ntop/patches/patch-ac @@ -0,0 +1,28 @@ +$NetBSD: patch-ac,v 1.4 2001/01/07 02:25:35 wiz 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); |