Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/shark/shark Don't use NULL for integer values.



details:   https://anonhg.NetBSD.org/src/rev/87bfe8c8a6ad
branches:  trunk
changeset: 553874:87bfe8c8a6ad
user:      agc <agc%NetBSD.org@localhost>
date:      Wed Oct 22 09:03:40 2003 +0000

description:
Don't use NULL for integer values.

diffstat:

 sys/arch/shark/shark/i8042reg.h |  6 +++---
 sys/arch/shark/shark/opms.c     |  8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r 4bb0ad1f265c -r 87bfe8c8a6ad sys/arch/shark/shark/i8042reg.h
--- a/sys/arch/shark/shark/i8042reg.h   Wed Oct 22 09:02:49 2003 +0000
+++ b/sys/arch/shark/shark/i8042reg.h   Wed Oct 22 09:03:40 2003 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: i8042reg.h,v 1.1 2002/02/10 01:58:04 thorpej Exp $     */
+/*      $NetBSD: i8042reg.h,v 1.2 2003/10/22 09:03:40 agc Exp $     */
 
 /*
  * Copyright 1997
@@ -234,7 +234,7 @@
 */
 #define I8042_WRITECCB(iot, ioh, value)  \
    ( i8042_cmd((iot), (ioh), I8042_WRITE_CCB, I8042_NO_RESPONSE, \
-                   NULL, (value)) )
+                   0, (value)) )
 
 /* Macro to read the 8042 Controller Command Byte
 */
@@ -254,7 +254,7 @@
 */
 #define I8042_AUXDISABLE(iot, ioh)  \
    ( i8042_cmd((iot), (ioh), I8042_CMD, I8042_NO_RESPONSE, \
-                   NULL, KBC_AUXDISABLE) )
+                   0, KBC_AUXDISABLE) )
 
 /* Macro to enable the Auxiliary device clock line.
 */
diff -r 4bb0ad1f265c -r 87bfe8c8a6ad sys/arch/shark/shark/opms.c
--- a/sys/arch/shark/shark/opms.c       Wed Oct 22 09:02:49 2003 +0000
+++ b/sys/arch/shark/shark/opms.c       Wed Oct 22 09:03:40 2003 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: opms.c,v 1.10 2003/07/15 03:36:03 lukem Exp $        */
+/*      $NetBSD: opms.c,v 1.11 2003/10/22 09:03:40 agc Exp $        */
 
 /*
  * Copyright 1997
@@ -91,7 +91,7 @@
 */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: opms.c,v 1.10 2003/07/15 03:36:03 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: opms.c,v 1.11 2003/10/22 09:03:40 agc Exp $");
 
 #include "opms.h"
 #if NOPMS > 1
@@ -465,7 +465,7 @@
     i8042_flush(sc->sc_iot, sc->sc_ioh);
     sc->sc_protocol_byte = PMS_RD_BYTE1; 
     (void) i8042_cmd(sc->sc_iot, sc->sc_ioh, I8042_AUX_CMD, 
-                         I8042_NO_RESPONSE, NULL, PMS_MOUSE_ENABLE);
+                         I8042_NO_RESPONSE, 0, PMS_MOUSE_ENABLE);
     (void) I8042_AUXENABLE(sc->sc_iot, sc->sc_ioh);
     /* Enable interrupts on the axilliary device.
     */
@@ -522,7 +522,7 @@
     */
     i8042_flush(sc->sc_iot, sc->sc_ioh);
     (void) i8042_cmd(sc->sc_iot, sc->sc_ioh, I8042_AUX_CMD, 
-                         I8042_NO_RESPONSE, NULL, PMS_MOUSE_DISABLE);
+                         I8042_NO_RESPONSE, 0, PMS_MOUSE_DISABLE);
     i8042_flush(sc->sc_iot, sc->sc_ioh);
     (void) I8042_WRITECCB(sc->sc_iot, sc->sc_ioh, NOAUX_CMDBYTE);
     (void) I8042_AUXDISABLE(sc->sc_iot, sc->sc_ioh);



Home | Main Index | Thread Index | Old Index