diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1995-05-30 05:51:47 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1995-05-30 05:51:47 +0000 |
commit | f05428e4cd63dde97bac14b84dd146a5c00455e3 (patch) | |
tree | e1331adb5d216f2b3fa6baa6491752348d2e5f10 /lib/libncurses/lib_getch.c | |
parent | 6de57e42c294763c78d77b0a9a7c5a08008a378a (diff) | |
download | FreeBSD-src-f05428e4cd63dde97bac14b84dd146a5c00455e3.zip FreeBSD-src-f05428e4cd63dde97bac14b84dd146a5c00455e3.tar.gz |
Remove trailing whitespace.
Diffstat (limited to 'lib/libncurses/lib_getch.c')
-rw-r--r-- | lib/libncurses/lib_getch.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libncurses/lib_getch.c b/lib/libncurses/lib_getch.c index 458cdec..c30f7f2 100644 --- a/lib/libncurses/lib_getch.c +++ b/lib/libncurses/lib_getch.c @@ -62,7 +62,7 @@ int ungetch(int ch) t_inc() } else h_dec(); - + SP->_fifo[head] = ch; T(("ungetch ok")); fifo_dump(); @@ -75,7 +75,7 @@ int n; unsigned char ch; if (tail == -1) return ERR; -again: +again: n = read(fileno(SP->_ifp), &ch, 1); if (n == -1 && errno == EINTR) goto again; @@ -102,7 +102,7 @@ int wgetch(WINDOW *win) { bool setHere = FALSE; /* cbreak mode was set here */ -int ch; +int ch; T(("wgetch(%x) called", win)); @@ -195,9 +195,9 @@ int timeleft = 1000; peek = 0; while (ptr != NULL) { T(("ch = %d", ch)); - while ((ptr != NULL) && (ptr->ch != (unsigned char)ch)) + while ((ptr != NULL) && (ptr->ch != (unsigned char)ch)) ptr = ptr->sibling; - + if (ptr != NULL) if (ptr->value != 0) { /* sequence terminated */ T(("end of sequence")); @@ -219,6 +219,6 @@ int timeleft = 1000; ch = fifo_peek(); } } - } + } return(fifo_pull()); } |