Remove useless int, use direct getch() instead int n = getch() - tty-clock - port of tty-clock to OpenBSD, with pledge/unveil added as goodie.
HTML git clone https://git.drkhsh.at/tty-clock.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit a58943a6330972d11122b855fd46c2c06d1161be
DIR parent 9acb5161e769453cce628a1b153b26fa832ac480
HTML Author: Martin Duquesnoy <xorg62@gmail.com>
Date: Sat, 6 Dec 2008 00:32:17 +0100
Remove useless int, use direct getch() instead int n = getch()
Diffstat:
M clock.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
---
DIR diff --git a/clock.c b/clock.c
@@ -249,14 +249,10 @@ arrange_clock(int h1, int h2,
void
check_key(Bool keylock)
{
- int c;
-
if(!keylock)
return;
- c = getch();
-
- switch(c)
+ switch(getch())
{
case KEY_UP:
case 'k':