From 1246513f9c16c139e46807fff7f64a102a0b2565 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Tue, 30 Apr 2002 22:08:44 +0000 Subject: media table could be const --- sys/dev/ic/elink3.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys') diff --git a/sys/dev/ic/elink3.c b/sys/dev/ic/elink3.c index bcbb91ec072..e58a82abdf7 100644 --- a/sys/dev/ic/elink3.c +++ b/sys/dev/ic/elink3.c @@ -1,4 +1,4 @@ -/* $OpenBSD: elink3.c,v 1.57 2002/03/14 03:16:04 millert Exp $ */ +/* $OpenBSD: elink3.c,v 1.58 2002/04/30 22:08:43 mickey Exp $ */ /* $NetBSD: elink3.c,v 1.32 1997/05/14 00:22:00 thorpej Exp $ */ /* @@ -95,7 +95,7 @@ struct ep_media { * (i.e., EPMEDIA_ constants) forcing order of entries. * Note that 3 is reserved. */ -struct ep_media ep_vortex_media[8] = { +const struct ep_media ep_vortex_media[8] = { { EP_PCI_UTP, EPC_UTP, "utp", IFM_ETHER|IFM_10_T, EPMEDIA_10BASE_T }, { EP_PCI_AUI, EPC_AUI, "aui", IFM_ETHER|IFM_10_5, @@ -546,7 +546,7 @@ ep_vortex_probemedia(sc) /* set available media options */ conn = 0; for (i = 0; i < 8; i++) { - struct ep_media * epm = ep_vortex_media + i; + const struct ep_media *epm = ep_vortex_media + i; if ((reset_options & epm->epm_eeprom_data) != 0) { if (conn) -- cgit v1.2.3