diff options
author | christos <christos@NetBSD.org> | 2001-11-02 18:27:00 +0000 |
---|---|---|
committer | christos <christos@NetBSD.org> | 2001-11-02 18:27:00 +0000 |
commit | 31eafb107eec858251ba10953d17d3dd8402be78 (patch) | |
tree | 5cbf425c78909b7df70fef3133a6048b9a2343b6 /tetris | |
parent | 4124d10fb7d8dace368157d1e2a7a31d78b92787 (diff) | |
download | bsdgames-darwin-31eafb107eec858251ba10953d17d3dd8402be78.tar.gz bsdgames-darwin-31eafb107eec858251ba10953d17d3dd8402be78.tar.zst bsdgames-darwin-31eafb107eec858251ba10953d17d3dd8402be78.zip |
Update to the new t_agetstr() API.
Diffstat (limited to 'tetris')
-rw-r--r-- | tetris/screen.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tetris/screen.c b/tetris/screen.c index 069e48a5..49031645 100644 --- a/tetris/screen.c +++ b/tetris/screen.c @@ -1,4 +1,4 @@ -/* $NetBSD: screen.c,v 1.15 2000/05/24 14:43:00 blymn Exp $ */ +/* $NetBSD: screen.c,v 1.16 2001/11/02 18:27:00 christos Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -120,7 +120,6 @@ struct tcsinfo { /* termcap string info; some abbrevs above */ /* This is where we will actually stuff the information */ -static char *combuf; static struct tinfo *info; /* @@ -160,7 +159,7 @@ scr_init() #ifdef unneeded static int ncflag; #endif - char *term, *fill; + char *term; static struct tcninfo { /* termcap numeric and flag info */ char tcname[3]; int *tcaddr; @@ -183,13 +182,11 @@ scr_init() stop("you must set the TERM environment variable"); if (t_getent(&info, term) <= 0) stop("cannot find your termcap"); - combuf = NULL; { register struct tcsinfo *p; for (p = tcstrings; p->tcaddr; p++) - *p->tcaddr = t_agetstr(info, p->tcname, &combuf, - &fill); + *p->tcaddr = t_agetstr(info, p->tcname); } { register struct tcninfo *p; |