diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 2000-06-29 07:55:43 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 2000-06-29 07:55:43 +0000 |
commit | afe22eb51e4f808aa964a4c9bffba4914baa8fe3 (patch) | |
tree | d8d0de568365f4b9e3c7318f1251df495dbd3226 /games/larn/diag.c | |
parent | 4c4981824991e9ac42791c3203847402110691a2 (diff) |
Prune some obsolete defines, in particular VT100. Eventually curses will
replace termios.
Use system-defined limits for path lengths and usernames.
Use strlcpy() for convenience and to avoid a possible buffer overflow or two.
Various small tweaks.
Diffstat (limited to 'games/larn/diag.c')
-rw-r--r-- | games/larn/diag.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/games/larn/diag.c b/games/larn/diag.c index b51c07a1512..1572515b4d3 100644 --- a/games/larn/diag.c +++ b/games/larn/diag.c @@ -1,9 +1,9 @@ -/* $OpenBSD: diag.c,v 1.3 1998/09/15 05:12:31 pjanzen Exp $ */ +/* $OpenBSD: diag.c,v 1.4 2000/06/29 07:55:40 pjanzen Exp $ */ /* $NetBSD: diag.c,v 1.8 1997/10/18 20:03:12 christos Exp $ */ /* diag.c Larn is copyrighted 1986 by Noah Morgan. */ #ifndef lint -static char rcsid[] = "$OpenBSD: diag.c,v 1.3 1998/09/15 05:12:31 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: diag.c,v 1.4 2000/06/29 07:55:40 pjanzen Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -230,9 +230,7 @@ savegame(fname) lprint((long) statbuf.st_ino); /* inode # */ lwclose(); lastmonst[0] = 0; -#ifndef VT100 setscroll(); -#endif /* VT100 */ lcreat((char *) 0); nosignal = 0; return (0); |