diff options
author | dholland <dholland@NetBSD.org> | 2009-08-12 07:28:40 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2009-08-12 07:28:40 +0000 |
commit | 8b1c71ee649fb41155da92995044e451c39ea700 (patch) | |
tree | 24e74c8d453828689bfeac45e6162912f3c42d76 /hack/hack.tty.c | |
parent | 31f496067cd42ce5ff71163efa5921ab6522e4aa (diff) | |
download | bsdgames-darwin-8b1c71ee649fb41155da92995044e451c39ea700.tar.gz bsdgames-darwin-8b1c71ee649fb41155da92995044e451c39ea700.tar.zst bsdgames-darwin-8b1c71ee649fb41155da92995044e451c39ea700.zip |
sprinkle static
Diffstat (limited to 'hack/hack.tty.c')
-rw-r--r-- | hack/hack.tty.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/hack/hack.tty.c b/hack/hack.tty.c index b6027f1d..8d0802b7 100644 --- a/hack/hack.tty.c +++ b/hack/hack.tty.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.tty.c,v 1.13 2009/06/07 18:30:39 dholland Exp $ */ +/* $NetBSD: hack.tty.c,v 1.14 2009/08/12 07:28:41 dholland Exp $ */ /*- * Copyright (c) 1988, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)hack.tty.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: hack.tty.c,v 1.13 2009/06/07 18:30:39 dholland Exp $"); +__RCSID("$NetBSD: hack.tty.c,v 1.14 2009/08/12 07:28:41 dholland Exp $"); #endif #endif /* not lint */ @@ -120,7 +120,9 @@ __RCSID("$NetBSD: hack.tty.c,v 1.13 2009/06/07 18:30:39 dholland Exp $"); static char erase_char, kill_char; static boolean settty_needed = FALSE; -struct termios inittyb, curttyb; +static struct termios inittyb, curttyb; + +static void setctty(void); /* * Get initial state of terminal, set ospeed (for termcap routines) @@ -162,7 +164,7 @@ settty(const char *s) setioctls(); } -void +static void setctty(void) { if (tcsetattr(0, TCSADRAIN, &curttyb) < 0) |