summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2013-05-27 21:09:09 +0000
committermiod <miod@openbsd.org>2013-05-27 21:09:09 +0000
commit805fad4d131a08477aa8b51d9704085109677984 (patch)
tree7c89faa0d1d508aaf557a07546e36f068d89fa21
parentCorrectly specify the visible part of the rightmost tile when the current (diff)
downloadwireguard-openbsd-805fad4d131a08477aa8b51d9704085109677984.tar.xz
wireguard-openbsd-805fad4d131a08477aa8b51d9704085109677984.zip
Drop lvalue casts; allows this to compile with gcc 4.
-rw-r--r--sys/arch/luna88k/dev/timekeeper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/luna88k/dev/timekeeper.c b/sys/arch/luna88k/dev/timekeeper.c
index 9445953af18..100873ade8d 100644
--- a/sys/arch/luna88k/dev/timekeeper.c
+++ b/sys/arch/luna88k/dev/timekeeper.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: timekeeper.c,v 1.5 2010/09/20 06:33:47 matthew Exp $ */
+/* $OpenBSD: timekeeper.c,v 1.6 2013/05/27 21:09:09 miod Exp $ */
/* $NetBSD: timekeeper.c,v 1.1 2000/01/05 08:48:56 nisimura Exp $ */
/*-
@@ -196,14 +196,14 @@ mkclock_set(dev, dt)
}
#define _DS_GET(off, data) \
- do { *chiptime = (off); (u_int8_t)(data) = (*chipdata); } while (0)
+ do { *chiptime = (off); (data) = (*chipdata); } while (0)
#define _DS_SET(off, data) \
do { *chiptime = (off); *chipdata = (u_int8_t)(data); } while (0)
#define _DS_GET_BCD(off, data) \
do { \
u_int8_t c; \
*chiptime = (off); \
- c = *chipdata; (u_int8_t)(data) = FROMBCD(c); \
+ c = *chipdata; (data) = FROMBCD(c); \
} while (0)
#define _DS_SET_BCD(off, data) \
do { \