summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/dev
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2019-09-03 14:35:24 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2019-09-03 14:35:24 +0000
commit73f0e5ce55a6c0c557e9b6ef7911488c9e61ec32 (patch)
treebaba7499bf0229599eb4771a1c11091159adcca8 /sys/arch/macppc/dev
parent926d802c2be911c87dbd43a37e3215d2e15c9c76 (diff)
delete incorrect casts, and a bit if ansi functions; ok jcs
Diffstat (limited to 'sys/arch/macppc/dev')
-rw-r--r--sys/arch/macppc/dev/pm_direct.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/arch/macppc/dev/pm_direct.c b/sys/arch/macppc/dev/pm_direct.c
index 962a0a559e5..10f342647c0 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.28 2016/12/26 17:38:14 jca Exp $ */
+/* $OpenBSD: pm_direct.c,v 1.29 2019/09/03 14:35:23 deraadt Exp $ */
/* $NetBSD: pm_direct.c,v 1.9 2000/06/08 22:10:46 tsubai Exp $ */
/*
@@ -287,8 +287,7 @@ pm_receive(u_char *data)
* Send data to PM for the PB Duo series and the PB 5XX series
*/
int
-pm_send(data)
- u_char data;
+pm_send(u_char data)
{
int rval;
@@ -642,9 +641,9 @@ pm_adb_get_TALK_result(PMData *pmdata)
adb_polling = 0;
adbWaiting = 0;
- adbBuffer = (long)0;
- adbCompRout = (long)0;
- adbCompData = (long)0;
+ adbBuffer = NULL;
+ adbCompRout = NULL;
+ adbCompData = NULL;
}