summaryrefslogtreecommitdiff
path: root/sys/dev/microcode
diff options
context:
space:
mode:
authorjdolecek <jdolecek@NetBSD.org>2001-01-22 14:30:43 +0000
committerjdolecek <jdolecek@NetBSD.org>2001-01-22 14:30:43 +0000
commit9e7736f1dc2071335fca9cfbe070450a30be8656 (patch)
treebe1ef3148e96c9db5dcf93b99d0e946b5aacfc4b /sys/dev/microcode
parent3e7f1eed59fd5a7364f50b43a873e017190ece9e (diff)
make patches[] const
Diffstat (limited to 'sys/dev/microcode')
-rw-r--r--sys/dev/microcode/aic7xxx/aic7xxx_seq.h2
-rw-r--r--sys/dev/microcode/aic7xxx/aicasm.c4
2 files changed, 3 insertions, 3 deletions
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,