From 2affa9f7b1bc5c1a6dc09d30d62cfb1c330072c6 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Fri, 2 Jan 2004 10:46:38 +0000 Subject: [PATCH] Don't confuse NULL with 0. --- sys/dev/fb/creator.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/fb/creator.c b/sys/dev/fb/creator.c index 05cf570170f..9bc0aed3044 100644 --- a/sys/dev/fb/creator.c +++ b/sys/dev/fb/creator.c @@ -292,11 +292,11 @@ creator_init(int unit, video_adapter_t *adp, int flags) FFB_WRITE(sc, FFB_DAC, FFB_DAC_VALUE2, 0x0); if (sc->sc_console) { - col = NULL; - row = NULL; + col = 0; + row = 0; OF_interpret("stdout @ is my-self addr line# addr column# ", 2, &col, &row); - if (col != NULL && row != NULL) { + if (col != 0 && row != 0) { sc->sc_colp = (int *)(col + 4); sc->sc_rowp = (int *)(row + 4); }