summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-12-06 09:30:25 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-12-06 09:30:25 +0000
commitf008d303e75c185eebcbb493b4e6d49bb400f694 (patch)
treea354275fa9ff6aeaf1d72801cf190f3d9cfdc2d5
parentd0342f4a0474abf42098fbaa0a4e2f2e3f006514 (diff)
Kill warning.
-rw-r--r--tty.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tty.c b/tty.c
index 7dc7f441..995c1ddc 100644
--- a/tty.c
+++ b/tty.c
@@ -1,4 +1,4 @@
-/* $Id: tty.c,v 1.52 2008-11-27 18:55:47 nicm Exp $ */
+/* $Id: tty.c,v 1.53 2008-12-06 09:30:25 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -116,7 +116,10 @@ int
tty_open(struct tty *tty, char **cause)
{
struct termios tio;
- int what, mode;
+#ifdef TIOCFLUSH
+ int what;
+#endif
+ int mode;
tty->fd = open(tty->path, O_RDWR|O_NONBLOCK);
if (tty->fd == -1) {