diff options
author | obrien <obrien@FreeBSD.org> | 2004-01-02 10:46:38 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2004-01-02 10:46:38 +0000 |
commit | 248990949d1cf3d7e7db488387f3486b318b87de (patch) | |
tree | 97ced71396b7db43b7cf89db674607c9d4e7610f /sys/dev/fb | |
parent | b2b8372d7e76b51b7d719cbc8554f505bd45c24c (diff) | |
download | FreeBSD-src-248990949d1cf3d7e7db488387f3486b318b87de.zip FreeBSD-src-248990949d1cf3d7e7db488387f3486b318b87de.tar.gz |
Don't confuse NULL with 0.
Diffstat (limited to 'sys/dev/fb')
-rw-r--r-- | sys/dev/fb/creator.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/fb/creator.c b/sys/dev/fb/creator.c index 05cf570..9bc0aed 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); } |