Fixed an array bounds violation.

Let include guards comform to the Minix standard.
This commit is contained in:
Kees van Reeuwijk
2010-02-24 10:39:58 +00:00
parent 3922d45719
commit 1ce69592d2
9 changed files with 16 additions and 15 deletions
+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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.