From ef50839698ed20e5db7e267f34736b1277f3eedb Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Thu, 3 Jan 2002 22:09:36 +0000 Subject: stdout and stdin are integers not pointers (use 0 not NULL) --- sys/arch/sparc64/sparc64/ofw_machdep.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/sparc64/sparc64/ofw_machdep.c b/sys/arch/sparc64/sparc64/ofw_machdep.c index d27bdb06e8a..16e7c63f9e3 100644 --- a/sys/arch/sparc64/sparc64/ofw_machdep.c +++ b/sys/arch/sparc64/sparc64/ofw_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ofw_machdep.c,v 1.3 2001/08/20 20:23:53 jason Exp $ */ +/* $OpenBSD: ofw_machdep.c,v 1.4 2002/01/03 22:09:35 jason Exp $ */ /* $NetBSD: ofw_machdep.c,v 1.16 2001/07/20 00:07:14 eeh Exp $ */ /* @@ -557,15 +557,15 @@ prom_get_msgbuf(len, align) * Low-level prom I/O routines. */ -static u_int stdin = NULL; -static u_int stdout = NULL; +static u_int stdin; +static u_int stdout; int OF_stdin() { u_int chosen; - if (stdin != NULL) + if (stdin != 0) return stdin; chosen = OF_finddevice("/chosen"); @@ -578,7 +578,7 @@ OF_stdout() { u_int chosen; - if (stdout != NULL) + if (stdout != 0) return stdout; chosen = OF_finddevice("/chosen"); -- cgit v1.2.3