fix const'ificication, gcc-3.4 will notice it

This commit is contained in:
drochner 2004-06-02 22:58:28 +00:00
parent 44a1e00a08
commit e7bdadd856
4 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: raidframevar.h,v 1.6 2004/01/04 06:37:16 oster Exp $ */
/* $NetBSD: raidframevar.h,v 1.7 2004/06/02 22:58:28 drochner Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@ -569,7 +569,7 @@ typedef struct RF_LayoutSW_s {
/* states to step through in an access. Must end with "LastState". The
* default is DefaultStates in rf_layout.c */
RF_AccessState_t *states;
const RF_AccessState_t *states;
RF_AccessStripeMapFlags_t flags;
#endif /* !KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: rf_desc.h,v 1.13 2004/04/09 23:10:16 oster Exp $ */
/* $NetBSD: rf_desc.h,v 1.14 2004/06/02 22:58:28 drochner Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@ -76,7 +76,7 @@ struct RF_RaidAccessDesc_s {
RF_RaidAccessFlags_t flags; /* flags controlling operation */
int state; /* index into states telling how far along the
* RAID operation has gotten */
RF_AccessState_t *states; /* array of states to be run */
const RF_AccessState_t *states; /* array of states to be run */
int status; /* pass/fail status of the last operation */
RF_DagList_t *dagList; /* list of dag lists, one list per stripe */
RF_VoidPointerListElem_t *iobufs; /* iobufs that need to be cleaned

View File

@ -1,4 +1,4 @@
/* $NetBSD: rf_driver.c,v 1.101 2004/04/22 00:17:12 itojun Exp $ */
/* $NetBSD: rf_driver.c,v 1.102 2004/06/02 22:58:28 drochner Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
* All rights reserved.
@ -73,7 +73,7 @@
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rf_driver.c,v 1.101 2004/04/22 00:17:12 itojun Exp $");
__KERNEL_RCSID(0, "$NetBSD: rf_driver.c,v 1.102 2004/06/02 22:58:28 drochner Exp $");
#include "opt_raid_diagnostic.h"
@ -502,7 +502,7 @@ RF_RaidAccessDesc_t *
rf_AllocRaidAccDesc(RF_Raid_t *raidPtr, RF_IoType_t type,
RF_RaidAddr_t raidAddress, RF_SectorCount_t numBlocks,
caddr_t bufPtr, void *bp, RF_RaidAccessFlags_t flags,
RF_AccessState_t *states)
const RF_AccessState_t *states)
{
RF_RaidAccessDesc_t *desc;

View File

@ -1,4 +1,4 @@
/* $NetBSD: rf_driver.h,v 1.11 2004/03/13 02:04:02 oster Exp $ */
/* $NetBSD: rf_driver.h,v 1.12 2004/06/02 22:58:30 drochner Exp $ */
/*
* rf_driver.h
*/
@ -46,7 +46,7 @@ RF_RaidAccessDesc_t *rf_AllocRaidAccDesc(RF_Raid_t *, RF_IoType_t,
RF_RaidAddr_t, RF_SectorCount_t,
caddr_t, void *,
RF_RaidAccessFlags_t,
RF_AccessState_t *);
const RF_AccessState_t *);
void rf_FreeRaidAccDesc(RF_RaidAccessDesc_t *);
int rf_DoAccess(RF_Raid_t *, RF_IoType_t, int, RF_RaidAddr_t,
RF_SectorCount_t, caddr_t, void *, RF_RaidAccessFlags_t);