Fixed an array bounds violation.
Let include guards comform to the Minix standard.
This commit is contained in:
@@ -385,7 +385,7 @@ static void el3_read_StationAddress(dpeth_t * dep)
|
||||
{
|
||||
unsigned int ix, rc;
|
||||
|
||||
for (ix = EE_3COM_NODE_ADDR; ix < SA_ADDR_LEN;) {
|
||||
for (ix = EE_3COM_NODE_ADDR; ix < SA_ADDR_LEN+EE_3COM_NODE_ADDR;) {
|
||||
/* Accesses with word No. */
|
||||
rc = el3_read_eeprom(dep->de_id_port, ix / 2);
|
||||
/* Swaps bytes of word */
|
||||
|
||||
+2
-2
@@ -7,8 +7,8 @@ and 82562 fast ethernet controllers.
|
||||
Created: Nov 2004 by Philip Homburg <philip@f-mnx.phicoh.com>
|
||||
*/
|
||||
|
||||
#ifndef _INC_FXP_H
|
||||
#define _INC_FXP_H
|
||||
#ifndef _FXP_FXP_H
|
||||
#define _FXP_FXP_H
|
||||
|
||||
#define VERBOSE 0 /* display output during intialization */
|
||||
|
||||
|
||||
+2
-2
@@ -6,8 +6,8 @@ Created: Nov 2004 by Philip Homburg <philip@f-mnx.phicoh.com>
|
||||
Definitions for the Media Independent (Ethernet) Interface
|
||||
*/
|
||||
|
||||
#ifndef _INC_MII_H
|
||||
#define _INC_MII_H
|
||||
#ifndef _FXP_MII_H
|
||||
#define _FXP_MII_H
|
||||
|
||||
/* Registers in the Machine Independent Interface (MII) to the PHY.
|
||||
* IEEE 802.3 (2000 Edition) Clause 22.
|
||||
|
||||
Reference in New Issue
Block a user