=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/vgrind/Attic/vgrindefs.c,v retrieving revision 1.5 retrieving revision 1.6 diff -c -r1.5 -r1.6 *** src/usr.bin/vgrind/Attic/vgrindefs.c 2003/02/19 07:33:34 1.5 --- src/usr.bin/vgrind/Attic/vgrindefs.c 2003/02/19 07:38:50 1.6 *************** *** 1,4 **** ! /* $OpenBSD: vgrindefs.c,v 1.5 2003/02/19 07:33:34 deraadt Exp $ */ /* $NetBSD: vgrindefs.c,v 1.5 1994/12/20 12:05:29 cgd Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: vgrindefs.c,v 1.6 2003/02/19 07:38:50 deraadt Exp $ */ /* $NetBSD: vgrindefs.c,v 1.5 1994/12/20 12:05:29 cgd Exp $ */ /* *************** *** 38,44 **** #if 0 static char sccsid[] = "@(#)vgrindefs.c 8.1 (Berkeley) 6/6/93"; #endif ! static char rcsid[] = "$OpenBSD: vgrindefs.c,v 1.5 2003/02/19 07:33:34 deraadt Exp $"; #endif /* not lint */ #define BUFSIZ 1024 --- 38,44 ---- #if 0 static char sccsid[] = "@(#)vgrindefs.c 8.1 (Berkeley) 6/6/93"; #endif ! static char rcsid[] = "$OpenBSD: vgrindefs.c,v 1.6 2003/02/19 07:38:50 deraadt Exp $"; #endif /* not lint */ #define BUFSIZ 1024 *************** *** 74,87 **** * from the termcap file. Parse is very rudimentary; * we just notice escaped newlines. */ ! tgetent(bp, name, file) ! char *bp, *name, *file; { ! char *cp; ! int c; ! int i = 0, cnt = 0; ! char ibuf[BUFSIZ]; ! char *cp2; int tf; tbuf = bp; --- 74,83 ---- * from the termcap file. Parse is very rudimentary; * we just notice escaped newlines. */ ! tgetent(char *bp, char *name, char *file) { ! char ibuf[BUFSIZ], *cp, *cp2; ! int i = 0, cnt = 0, c; int tf; tbuf = bp; *************** *** 134,140 **** * entries to say "like an HP2621 but doesn't turn on the labels". * Note that this works because of the left to right scan. */ ! tnchktc() { char *p, *q; char tcname[16]; /* name of similar terminal */ --- 130,136 ---- * entries to say "like an HP2621 but doesn't turn on the labels". * Note that this works because of the left to right scan. */ ! tnchktc(void) { char *p, *q; char tcname[16]; /* name of similar terminal */ *************** *** 181,188 **** * against each such name. The normal : terminator after the last * name (before the first field) stops us. */ ! tnamatch(np) ! char *np; { char *Np, *Bp; --- 177,183 ---- * against each such name. The normal : terminator after the last * name (before the first field) stops us. */ ! tnamatch(char *np) { char *Np, *Bp; *************** *** 208,215 **** * into the termcap file in octal. */ static char * ! tskip(bp) ! char *bp; { while (*bp && *bp != ':') --- 203,209 ---- * into the termcap file in octal. */ static char * ! tskip(char *bp) { while (*bp && *bp != ':') *************** *** 227,234 **** * a # character. If the option is not found we return -1. * Note that we handle octal numbers beginning with 0. */ ! tgetnum(id) ! char *id; { int i, base; char *bp = tbuf; --- 221,227 ---- * a # character. If the option is not found we return -1. * Note that we handle octal numbers beginning with 0. */ ! tgetnum(char *id) { int i, base; char *bp = tbuf; *************** *** 260,267 **** * of the buffer. Return 1 if we find the option, or 0 if it is * not given. */ ! tgetflag(id) ! char *id; { char *bp = tbuf; --- 253,259 ---- * of the buffer. Return 1 if we find the option, or 0 if it is * not given. */ ! tgetflag(char *id) { char *bp = tbuf; *************** *** 287,294 **** * No checking on area overflow. */ char * ! tgetstr(id, area) ! char *id, **area; { char *bp = tbuf; --- 279,285 ---- * No checking on area overflow. */ char * ! tgetstr(char *id, char **area) { char *bp = tbuf; *************** *** 312,320 **** * string capability escapes. */ static char * ! tdecode(str, area) ! char *str; ! char **area; { char *cp; int c; --- 303,309 ---- * string capability escapes. */ static char * ! tdecode(char *str, char **area) { char *cp; int c;