diff options
author | peter <peter@FreeBSD.org> | 1999-05-06 18:58:05 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-05-06 18:58:05 +0000 |
commit | 571738073e78dc8f68c38a67bb6e487ac87dad57 (patch) | |
tree | 349a97477e021bc9fdf794ad4ad2314e56ecac84 /sys/dev/ar | |
parent | 08a8ee359c4d3b0afc4cc7b4388fb12d2e878190 (diff) | |
download | FreeBSD-src-571738073e78dc8f68c38a67bb6e487ac87dad57.zip FreeBSD-src-571738073e78dc8f68c38a67bb6e487ac87dad57.tar.gz |
Fix 'signed char as array index' warnings and an unused variable.
Diffstat (limited to 'sys/dev/ar')
-rw-r--r-- | sys/dev/ar/if_ar.c | 7 | ||||
-rw-r--r-- | sys/dev/ar/if_ar_isa.c | 7 |
2 files changed, 6 insertions, 8 deletions
diff --git a/sys/dev/ar/if_ar.c b/sys/dev/ar/if_ar.c index 043ad4c..556a4a1c48 100644 --- a/sys/dev/ar/if_ar.c +++ b/sys/dev/ar/if_ar.c @@ -28,7 +28,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: if_ar.c,v 1.24 1998/12/16 18:42:38 phk Exp $ + * $Id: if_ar.c,v 1.25 1999/03/30 13:28:22 phk Exp $ */ /* @@ -135,8 +135,8 @@ struct ar_softc { char xmit_busy; /* Transmitter is busy */ char txb_inuse; /* Number of tx blocks currently in use */ - char txb_new; /* Index to where new buffer will be added */ - char txb_next_tx; /* Index to next block ready to tx */ + u_char txb_new; /* Index to where new buffer will be added */ + u_char txb_next_tx; /* Index to next block ready to tx */ u_int rxdesc; /* On card address */ u_int rxstart; /* On card address */ @@ -595,7 +595,6 @@ arioctl(struct ifnet *ifp, u_long cmd, caddr_t data) { int s, error; int was_up, should_be_up; - struct sppp *sp = (struct sppp *)ifp; struct ar_softc *sc = ifp->if_softc; TRC(printf("ar%d: arioctl.\n", ifp->if_unit);) diff --git a/sys/dev/ar/if_ar_isa.c b/sys/dev/ar/if_ar_isa.c index 043ad4c..556a4a1c48 100644 --- a/sys/dev/ar/if_ar_isa.c +++ b/sys/dev/ar/if_ar_isa.c @@ -28,7 +28,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: if_ar.c,v 1.24 1998/12/16 18:42:38 phk Exp $ + * $Id: if_ar.c,v 1.25 1999/03/30 13:28:22 phk Exp $ */ /* @@ -135,8 +135,8 @@ struct ar_softc { char xmit_busy; /* Transmitter is busy */ char txb_inuse; /* Number of tx blocks currently in use */ - char txb_new; /* Index to where new buffer will be added */ - char txb_next_tx; /* Index to next block ready to tx */ + u_char txb_new; /* Index to where new buffer will be added */ + u_char txb_next_tx; /* Index to next block ready to tx */ u_int rxdesc; /* On card address */ u_int rxstart; /* On card address */ @@ -595,7 +595,6 @@ arioctl(struct ifnet *ifp, u_long cmd, caddr_t data) { int s, error; int was_up, should_be_up; - struct sppp *sp = (struct sppp *)ifp; struct ar_softc *sc = ifp->if_softc; TRC(printf("ar%d: arioctl.\n", ifp->if_unit);) |