summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1998-03-21 02:05:17 +0000
committercgd <cgd@NetBSD.org>1998-03-21 02:05:17 +0000
commit0a2c48d07f21138cc5979aaeeb2ec15b9e4a58a2 (patch)
tree109ad0433329b71fbd829c8b1a9d8b7400598a6a /sys/dev
parent3cc8b411d0ff49810f3ba1526cae07e0ebea68c0 (diff)
-Wall
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ofw/ofrtc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ofw/ofrtc.c b/sys/dev/ofw/ofrtc.c
index 6943bdae7be..adf8a54c9f1 100644
--- a/sys/dev/ofw/ofrtc.c
+++ b/sys/dev/ofw/ofrtc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ofrtc.c,v 1.6 1998/02/24 05:44:39 mycroft Exp $ */
+/* $NetBSD: ofrtc.c,v 1.7 1998/03/21 02:05:17 cgd Exp $ */
/*
* Copyright (C) 1996 Wolfgang Solfrank.
@@ -32,6 +32,7 @@
*/
#include <sys/param.h>
+#include <sys/systm.h>
#include <sys/device.h>
#include <dev/ofw/openfirm.h>
@@ -207,7 +208,7 @@ ofrtc_write(dev, uio, flag)
if (uio->uio_offset || (cnt != sizeof buf && cnt != sizeof buf - 1))
return EINVAL;
- if (error = uiomove((caddr_t)buf, sizeof buf, uio))
+ if ((error = uiomove((caddr_t)buf, sizeof buf, uio)) != 0)
return error;
if (cnt == sizeof buf && buf[sizeof buf - 1] != '\n')