diff options
author | mestre <mestre@cvs.openbsd.org> | 2016-01-08 18:05:59 +0000 |
---|---|---|
committer | mestre <mestre@cvs.openbsd.org> | 2016-01-08 18:05:59 +0000 |
commit | a1c684411021240c85b7240610f50b00fe9653e7 (patch) | |
tree | 8306d09ee75e8271d1d4d4adab29842e135244bf /games/mille/move.c | |
parent | acd4f569237dcdcc8fa8acec7b1125a2f37815a4 (diff) |
Headers cleanup and also the following:
mille.h:
#define CTRL locally, which is used by move.c and misc.c, to avoid including
termios.h or sys/ttydefaults.h where it's actually defined
varpush.c:
Change _PATH_DEVNULL to "/dev/null" since other systems may not have it defined
but also avoids including <paths.h>
Included a few sugestions from tb@ who also gave his OK
Diffstat (limited to 'games/mille/move.c')
-rw-r--r-- | games/mille/move.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/games/mille/move.c b/games/mille/move.c index 2f18d93a7f6..b75a5107ca1 100644 --- a/games/mille/move.c +++ b/games/mille/move.c @@ -1,4 +1,4 @@ -/* $OpenBSD: move.c,v 1.15 2015/11/04 21:22:10 tedu Exp $ */ +/* $OpenBSD: move.c,v 1.16 2016/01/08 18:05:58 mestre Exp $ */ /* $NetBSD: move.c,v 1.4 1995/03/24 05:01:57 cgd Exp $ */ /* @@ -30,17 +30,19 @@ * SUCH DAMAGE. */ -#include <limits.h> -#include <termios.h> -#include "mille.h" +#include <ctype.h> +#ifdef DEBUG +#include <err.h> +#include <limits.h> +#endif +#include <string.h> + +#include "mille.h" /* * @(#)move.c 1.2 (Berkeley) 3/28/83 */ -#undef CTRL -#define CTRL(c) (c - 'A' + 1) - void domove() { |