diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-04-13 02:05:19 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-04-13 02:05:19 +0000 |
commit | fb5db144ad0a3ef3a496b16ce237402b01adb002 (patch) | |
tree | 81b6aa05d401568ab608d872b497c798df2fb7be /usr.bin | |
parent | 0d4c8a4c3b4618c4099714955e0c33d8b65e781d (diff) |
use STDERR_FILENO
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/vgrind/vgrindefs.c | 12 |
1 files changed, 6 insertions, 6 deletions
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<tbuf) { - write(2, "Bad vgrind entry\n", 18); + write(STDERR_FILENO, "Bad vgrind entry\n", 18); return (0); } p++; @@ -150,7 +150,7 @@ tnchktc(void) q++; *q = 0; if (++hopcount > 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); |