From: Blue Swirl Date: Fri, 14 May 2010 19:32:18 +0000 (+0000) Subject: e1000: make some tables 'const' X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~1405^2~17^2~4274 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af2960f942577a0d48f7368ca90fbaa783e77ac3;p=sdk%2Femulator%2Fqemu.git e1000: make some tables 'const' Signed-off-by: Blue Swirl --- diff --git a/hw/e1000.c b/hw/e1000.c index 34cc451cf7..96d045d209 100644 --- a/hw/e1000.c +++ b/hw/e1000.c @@ -544,8 +544,8 @@ start_xmit(E1000State *s) static int receive_filter(E1000State *s, const uint8_t *buf, int size) { - static uint8_t bcast[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; - static int mta_shift[] = {4, 3, 2, 0}; + static const uint8_t bcast[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; + static const int mta_shift[] = {4, 3, 2, 0}; uint32_t f, rctl = s->mac_reg[RCTL], ra[2], *rp; if (is_vlan_packet(s, buf) && vlan_rx_filter_enabled(s)) {