diff options
| author | mrg <mrg@NetBSD.org> | 2000-04-14 08:22:49 +0000 |
|---|---|---|
| committer | mrg <mrg@NetBSD.org> | 2000-04-14 08:22:49 +0000 |
| commit | dfe176302ca9b2a55dc047ce91d604f7dbec1da7 (patch) | |
| tree | 405b373839b44dfd30c8b714a2a5dce434e6fc73 /sys/dev/sbus | |
| parent | f4be79ac40e3d43d16861ac76780497d879bc480 (diff) | |
add some casts to (u_long) to shut up gcc
Diffstat (limited to 'sys/dev/sbus')
| -rw-r--r-- | sys/dev/sbus/cs4231_sbus.c | 4 | ||||
| -rw-r--r-- | sys/dev/sbus/lebuffer.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/sbus/cs4231_sbus.c b/sys/dev/sbus/cs4231_sbus.c index cbd53601403..4b1bef5d178 100644 --- a/sys/dev/sbus/cs4231_sbus.c +++ b/sys/dev/sbus/cs4231_sbus.c @@ -1,4 +1,4 @@ -/* $NetBSD: cs4231_sbus.c,v 1.12 1999/11/21 15:01:51 pk Exp $ */ +/* $NetBSD: cs4231_sbus.c,v 1.13 2000/04/14 08:22:49 mrg Exp $ */ /*- * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc. @@ -119,7 +119,7 @@ cs4231_attach_sbus(parent, self, aux) } sc->sc_ad1848.sc_ioh = bh; - sc->sc_dmareg = (struct apc_dma *)(bh + CS4231_REG_SIZE); + sc->sc_dmareg = (struct apc_dma *)(u_long)(bh + CS4231_REG_SIZE); cs4231_init(sc); diff --git a/sys/dev/sbus/lebuffer.c b/sys/dev/sbus/lebuffer.c index b4590fc9d70..f385be4aadf 100644 --- a/sys/dev/sbus/lebuffer.c +++ b/sys/dev/sbus/lebuffer.c @@ -1,4 +1,4 @@ -/* $NetBSD: lebuffer.c,v 1.6 2000/01/11 12:59:44 pk Exp $ */ +/* $NetBSD: lebuffer.c,v 1.7 2000/04/14 08:22:49 mrg Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -116,7 +116,7 @@ lebufattach(parent, self, aux) * Lance ring-buffers can be stored. Note the buffer's location * and size, so the `le' driver can pick them up. */ - sc->sc_buffer = (caddr_t)bh; + sc->sc_buffer = (caddr_t)(u_long)bh; sc->sc_bufsiz = sa->sa_size; node = sc->sc_node = sa->sa_node; |
