diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-05-14 19:32:18 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-05-14 19:32:18 +0000 |
commit | af2960f942577a0d48f7368ca90fbaa783e77ac3 (patch) | |
tree | be28cab4993934bc4baa57d0b390c828a199a048 /hw | |
parent | 117e1e8244f5943ca84c37d2a0ff4711cd795852 (diff) | |
download | qemu-af2960f942577a0d48f7368ca90fbaa783e77ac3.zip qemu-af2960f942577a0d48f7368ca90fbaa783e77ac3.tar.gz qemu-af2960f942577a0d48f7368ca90fbaa783e77ac3.tar.bz2 |
e1000: make some tables 'const'
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/e1000.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)) { |