make the ethernet address an unsigned char array to avoid sign extension

when it is printed
This commit is contained in:
drochner 1999-02-19 19:30:46 +00:00
parent 0ce9e35aae
commit fd3ad59373
7 changed files with 19 additions and 19 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: 3c509.c,v 1.5 1998/05/14 18:15:02 drochner Exp $ */
/* $NetBSD: 3c509.c,v 1.6 1999/02/19 19:30:46 drochner Exp $ */
/* stripped down from freebsd:sys/i386/netboot/3c509.c */
@ -73,7 +73,7 @@ extern int mapio __P((void));
ETH_PROBE - Look for an adapter
***************************************************************************/
int EtherInit(myadr)
char *myadr;
unsigned char *myadr;
{
/* common variables */
int i;

View File

@ -1,4 +1,4 @@
/* $NetBSD: 3c590.c,v 1.8 1998/02/25 12:15:49 drochner Exp $ */
/* $NetBSD: 3c590.c,v 1.9 1999/02/19 19:30:46 drochner Exp $ */
/* stripped down from freebsd:sys/i386/netboot/3c509.c */
@ -35,7 +35,7 @@ Author: Martin Renters.
#include <libi386.h>
#include <pcivar.h>
#ifdef _STANDALONE
#if defined(_STANDALONE) && !defined(SUPPORT_NO_NETBSD)
#include <lib/libkern/libkern.h>
#include <bootinfo.h>
#endif
@ -65,7 +65,7 @@ static struct mtabentry {
{6, 0x40, "MII"},
};
#ifdef _STANDALONE
#if defined(_STANDALONE) && !defined(SUPPORT_NO_NETBSD)
static struct btinfo_netif bi_netif;
#endif
@ -73,7 +73,7 @@ static struct btinfo_netif bi_netif;
ETH_PROBE - Look for an adapter
***************************************************************************/
int EtherInit(myadr)
char *myadr;
unsigned char *myadr;
{
/* common variables */
int i, j;
@ -148,7 +148,7 @@ ok:
epreset();
#ifdef _STANDALONE
#if defined(_STANDALONE) && !defined(SUPPORT_NO_NETBSD)
strncpy(bi_netif.ifname, "ep", sizeof(bi_netif.ifname));
bi_netif.bus = BI_BUS_PCI;
bi_netif.addr.tag = hdl;

View File

@ -1,4 +1,4 @@
/* $NetBSD: etherdrv.h,v 1.3 1997/07/15 11:23:04 drochner Exp $ */
/* $NetBSD: etherdrv.h,v 1.4 1999/02/19 19:30:46 drochner Exp $ */
/*
* Copyright (c) 1996
@ -32,9 +32,9 @@
*
*/
int EtherInit __P((char*));
int EtherSend __P((char*, int));
int EtherReceive __P((char*, int));
int EtherInit __P((unsigned char *));
int EtherSend __P((char *, int));
int EtherReceive __P((char *, int));
void EtherStop __P((void));
extern int ether_medium;

View File

@ -1,4 +1,4 @@
/* $NetBSD: i82557.c,v 1.1 1998/12/12 15:47:05 drochner Exp $ */
/* $NetBSD: i82557.c,v 1.2 1999/02/19 19:30:46 drochner Exp $ */
/*
* Copyright (c) 1998
@ -165,7 +165,7 @@ fxp_checkintr(msg)
int
EtherInit(myadr)
char *myadr;
unsigned char *myadr;
{
#ifndef _STANDALONE
u_int32_t id;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pcnet_isapnp.c,v 1.4 1997/09/20 12:13:04 drochner Exp $ */
/* $NetBSD: pcnet_isapnp.c,v 1.5 1999/02/19 19:30:47 drochner Exp $ */
/*
* Copyright (c) 1996
@ -61,7 +61,7 @@ extern void am7990_stop __P((void));
static struct btinfo_netif bi_netif;
int EtherInit(myadr)
char *myadr;
unsigned char *myadr;
{
int iobase, dmachan, i;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pcnet_pci.c,v 1.4 1997/09/20 12:13:05 drochner Exp $ */
/* $NetBSD: pcnet_pci.c,v 1.5 1999/02/19 19:30:47 drochner Exp $ */
/*
* Copyright (c) 1996
@ -57,7 +57,7 @@ extern void am7990_stop __P((void));
static struct btinfo_netif bi_netif;
int EtherInit(myadr)
char *myadr;
unsigned char *myadr;
{
int iobase, pcicsr, i;

View File

@ -1,4 +1,4 @@
/* $NetBSD: wd80x3.c,v 1.5 1998/02/16 11:22:00 drochner Exp $ */
/* $NetBSD: wd80x3.c,v 1.6 1999/02/19 19:30:47 drochner Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -217,7 +217,7 @@ we_params()
int
EtherInit(myadr)
char *myadr;
unsigned char *myadr;
{
const char *typestr;
u_int8_t x;