summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/dev/pm_direct.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2016-03-14 23:08:07 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2016-03-14 23:08:07 +0000
commitf779382c98d99e6d7457e2c790d177db942b5af3 (patch)
treed934e1330cc5a274507d31acd79e0912bd7753c0 /sys/arch/macppc/dev/pm_direct.c
parent178b3485055aca748b4147efb3bd65e18a4f77a6 (diff)
Change a bunch of (<blah> *)0 to NULL.
ok beck@ deraadt@
Diffstat (limited to 'sys/arch/macppc/dev/pm_direct.c')
-rw-r--r--sys/arch/macppc/dev/pm_direct.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/macppc/dev/pm_direct.c b/sys/arch/macppc/dev/pm_direct.c
index 3861c443090..3b7386adf3a 100644
--- a/sys/arch/macppc/dev/pm_direct.c
+++ b/sys/arch/macppc/dev/pm_direct.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pm_direct.c,v 1.25 2013/04/23 07:38:05 mpi Exp $ */
+/* $OpenBSD: pm_direct.c,v 1.26 2016/03/14 23:08:05 krw Exp $ */
/* $NetBSD: pm_direct.c,v 1.9 2000/06/08 22:10:46 tsubai Exp $ */
/*
@@ -511,7 +511,7 @@ pm_adb_op(u_char *buffer, void *compRout, void *data, int command)
* add number of ADB data to number of PM data
*/
if ((command & 0xc) == 0x8) {
- if (buffer != (u_char *)0)
+ if (buffer != NULL)
pmdata.num_data = buffer[0] + 3;
} else
pmdata.num_data = 3;
@@ -537,7 +537,7 @@ pm_adb_op(u_char *buffer, void *compRout, void *data, int command)
pmdata.data[1] = 0;
/* if the command is LISTEN, copy ADB data to PM buffer */
if ((command & 0xc) == 0x8) {
- if ((buffer != (u_char *)0) && (buffer[0] <= 24)) {
+ if ((buffer != NULL && (buffer[0] <= 24)) {
pmdata.data[2] = buffer[0]; /* number of data */
for (i = 0; i < buffer[0]; i++)
pmdata.data[3 + i] = buffer[1 + i];