From 1cf5f6f64d06db8add4db59c7cb737bef6bcad84 Mon Sep 17 00:00:00 2001 From: christos Date: Mon, 30 May 2005 04:30:56 +0000 Subject: [PATCH] add const to a cast. --- sys/dev/mca/if_elmc_mca.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/dev/mca/if_elmc_mca.c b/sys/dev/mca/if_elmc_mca.c index feab63f8a267..0cff086d72f3 100644 --- a/sys/dev/mca/if_elmc_mca.c +++ b/sys/dev/mca/if_elmc_mca.c @@ -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. @@ -46,7 +46,7 @@ */ #include -__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 #include @@ -326,8 +326,8 @@ elmc_mca_copyout (sc, src, offset, size) } dribble = size % 2; - bus_space_write_region_2(sc->bt, sc->bh, offset, (u_int16_t *)bptr, - size >> 1); + bus_space_write_region_2(sc->bt, sc->bh, offset, + (const u_int16_t *)bptr, size >> 1); if (dribble) { bptr += size - 1; offset += size - 1;