From 179a8d9603fd4591c000095b1f625a5820aee4d8 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sun, 5 Jul 1998 18:36:53 +0000 Subject: use STDERR_FILENO; kleink --- lib/libc/gmon/gmon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libc/gmon/gmon.c b/lib/libc/gmon/gmon.c index d722ba3dbc0..ef38e9484f8 100644 --- a/lib/libc/gmon/gmon.c +++ b/lib/libc/gmon/gmon.c @@ -32,7 +32,7 @@ */ #if !defined(lint) && defined(LIBC_SCCS) -static char rcsid[] = "$OpenBSD: gmon.c,v 1.8 1997/07/23 21:11:27 kstailey Exp $"; +static char rcsid[] = "$OpenBSD: gmon.c,v 1.9 1998/07/05 18:36:52 deraadt Exp $"; #endif #include @@ -55,7 +55,7 @@ static int s_scale; /* see profil(2) where this is describe (incorrectly) */ #define SCALE_1_TO_1 0x10000L -#define ERR(s) write(2, s, sizeof(s)) +#define ERR(s) write(STDERR_FILENO, s, sizeof(s)) void moncontrol __P((int)); static int hertz __P((void)); -- cgit v1.2.3