diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2002-01-03 22:09:36 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2002-01-03 22:09:36 +0000 |
commit | ef50839698ed20e5db7e267f34736b1277f3eedb (patch) | |
tree | 3ce188c365cf617549f1b7c9ca23018a94d2a9a1 /sys | |
parent | 6a7325ccd3d30b0417f42712fbee2d9a50459495 (diff) |
stdout and stdin are integers not pointers (use 0 not NULL)
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sparc64/sparc64/ofw_machdep.c | 10 |
1 files changed, 5 insertions, 5 deletions
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"); |