add const to a cast.
This commit is contained in:
parent
26f4234ec5
commit
1cf5f6f64d
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: if_elmc_mca.c,v 1.17 2005/02/27 00:27:21 perry Exp $ */
|
/* $NetBSD: if_elmc_mca.c,v 1.18 2005/05/30 04:30:56 christos Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: if_elmc_mca.c,v 1.17 2005/02/27 00:27:21 perry Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: if_elmc_mca.c,v 1.18 2005/05/30 04:30:56 christos Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
|
@ -326,8 +326,8 @@ elmc_mca_copyout (sc, src, offset, size)
|
||||||
}
|
}
|
||||||
|
|
||||||
dribble = size % 2;
|
dribble = size % 2;
|
||||||
bus_space_write_region_2(sc->bt, sc->bh, offset, (u_int16_t *)bptr,
|
bus_space_write_region_2(sc->bt, sc->bh, offset,
|
||||||
size >> 1);
|
(const u_int16_t *)bptr, size >> 1);
|
||||||
if (dribble) {
|
if (dribble) {
|
||||||
bptr += size - 1;
|
bptr += size - 1;
|
||||||
offset += size - 1;
|
offset += size - 1;
|
||||||
|
|
Loading…
Reference in New Issue