From 9e7736f1dc2071335fca9cfbe070450a30be8656 Mon Sep 17 00:00:00 2001 From: jdolecek Date: Mon, 22 Jan 2001 14:30:43 +0000 Subject: make patches[] const --- sys/dev/microcode/aic7xxx/aic7xxx_seq.h | 2 +- sys/dev/microcode/aic7xxx/aicasm.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/microcode') diff --git a/sys/dev/microcode/aic7xxx/aic7xxx_seq.h b/sys/dev/microcode/aic7xxx/aic7xxx_seq.h index 96d86d03ccc..02df00b1710 100644 --- a/sys/dev/microcode/aic7xxx/aic7xxx_seq.h +++ b/sys/dev/microcode/aic7xxx/aic7xxx_seq.h @@ -863,7 +863,7 @@ ahc_patch0_func(struct ahc_softc *ahc) } typedef int patch_func_t __P((struct ahc_softc *)); -struct patch { +const struct patch { patch_func_t *patch_func; u_int32_t begin :10, skip_instr :10, diff --git a/sys/dev/microcode/aic7xxx/aicasm.c b/sys/dev/microcode/aic7xxx/aicasm.c index c1ef4a3d7a0..5e0f92a0e6b 100644 --- a/sys/dev/microcode/aic7xxx/aicasm.c +++ b/sys/dev/microcode/aic7xxx/aicasm.c @@ -1,4 +1,4 @@ -/* $NetBSD: aicasm.c,v 1.2 2001/01/18 20:28:18 jdolecek Exp $ */ +/* $NetBSD: aicasm.c,v 1.3 2001/01/22 14:30:44 jdolecek Exp $ */ /* * Aic7xxx SCSI host adapter firmware asssembler @@ -352,7 +352,7 @@ ahc_patch%d_func(struct ahc_softc *ahc) fprintf(ofile, "typedef int patch_func_t __P((struct ahc_softc *)); -struct patch { +const struct patch { patch_func_t *patch_func; u_int32_t begin :10, skip_instr :10, -- cgit