From fb5db144ad0a3ef3a496b16ce237402b01adb002 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 13 Apr 2005 02:05:19 +0000 Subject: use STDERR_FILENO --- usr.bin/vgrind/vgrindefs.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/vgrind/vgrindefs.c b/usr.bin/vgrind/vgrindefs.c index 862beedf6de..c28b85ae68d 100644 --- a/usr.bin/vgrind/vgrindefs.c +++ b/usr.bin/vgrind/vgrindefs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vgrindefs.c,v 1.8 2003/06/03 02:56:21 millert Exp $ */ +/* $OpenBSD: vgrindefs.c,v 1.9 2005/04/13 02:05:18 deraadt Exp $ */ /* $NetBSD: vgrindefs.c,v 1.5 1994/12/20 12:05:29 cgd Exp $ */ /* @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)vgrindefs.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: vgrindefs.c,v 1.8 2003/06/03 02:56:21 millert Exp $"; +static char rcsid[] = "$OpenBSD: vgrindefs.c,v 1.9 2005/04/13 02:05:18 deraadt Exp $"; #endif /* not lint */ #define BUFSIZ 1024 @@ -102,7 +102,7 @@ tgetent(char *bp, char *name, char *file) break; } if (cp >= bp+BUFSIZ) { - write(2,"Vgrind entry too long\n", 23); + write(STDERR_FILENO, "Vgrind entry too long\n", 23); break; } else *cp++ = c; @@ -137,7 +137,7 @@ tnchktc(void) p = tbuf + strlen(tbuf) - 2; /* before the last colon */ while (*--p != ':') if (p MAXHOP) { - write(2, "Infinite tc= loop\n", 18); + write(STDERR_FILENO, "Infinite tc= loop\n", 18); return (0); } if (tgetent(tcbuf, tcname, filename) != 1) @@ -159,7 +159,7 @@ tnchktc(void) ; l = p - holdtbuf + strlen(q); if (l > BUFSIZ) { - write(2, "Vgrind entry too long\n", 23); + write(STDERR_FILENO, "Vgrind entry too long\n", 23); q[BUFSIZ - (p-tbuf)] = 0; } strlcpy(p, q+1, l); -- cgit v1.2.3