Get rid of register declarations.

This commit is contained in:
augustss 2000-03-30 00:00:55 +00:00
parent c4ae664105
commit fc4d9ff403
8 changed files with 34 additions and 34 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cd.c,v 1.137 2000/03/13 23:52:36 soren Exp $ */
/* $NetBSD: cd.c,v 1.138 2000/03/30 00:00:55 augustss Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -600,10 +600,10 @@ done:
*/
void
cdstart(v)
register void *v;
void *v;
{
register struct cd_softc *cd = v;
register struct scsipi_link *sc_link = cd->sc_link;
struct cd_softc *cd = v;
struct scsipi_link *sc_link = cd->sc_link;
struct disklabel *lp = cd->sc_dk.dk_label;
struct buf *bp = 0;
struct scsipi_rw_big cmd_big;

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_se.c,v 1.28 2000/03/23 07:01:43 thorpej Exp $ */
/* $NetBSD: if_se.c,v 1.29 2000/03/30 00:00:55 augustss Exp $ */
/*
* Copyright (c) 1997 Ian W. Dall <ian.dall@dsto.defence.gov.au>
@ -271,9 +271,9 @@ static __inline u_int16_t
ether_cmp(one, two)
void *one, *two;
{
register u_int16_t *a = (u_int16_t *) one;
register u_int16_t *b = (u_int16_t *) two;
register u_int16_t diff;
u_int16_t *a = (u_int16_t *) one;
u_int16_t *b = (u_int16_t *) two;
u_int16_t diff;
diff = (a[0] - b[0]) | (a[1] - b[1]) | (a[2] - b[2]);
@ -647,7 +647,7 @@ bad:
*/
static int
se_read(sc, data, datalen)
register struct se_softc *sc;
struct se_softc *sc;
char *data;
int datalen;
{
@ -996,11 +996,11 @@ se_stop(sc)
*/
static int
se_ioctl(ifp, cmd, data)
register struct ifnet *ifp;
struct ifnet *ifp;
u_long cmd;
caddr_t data;
{
register struct se_softc *sc = ifp->if_softc;
struct se_softc *sc = ifp->if_softc;
struct ifaddr *ifa = (struct ifaddr *)data;
struct ifreq *ifr = (struct ifreq *)data;
int s, error = 0;
@ -1029,7 +1029,7 @@ se_ioctl(ifp, cmd, data)
#ifdef NS
case AF_NS:
{
register struct ns_addr *ina = &IA_SNS(ifa)->sns_addr;
struct ns_addr *ina = &IA_SNS(ifa)->sns_addr;
if (ns_nullhost(*ina))
ina->x_host =
@ -1236,7 +1236,7 @@ seioctl(dev, cmd, addr, flag, p)
int flag;
struct proc *p;
{
register struct se_softc *sc = se_cd.cd_devs[SEUNIT(dev)];
struct se_softc *sc = se_cd.cd_devs[SEUNIT(dev)];
return (scsipi_do_ioctl(sc->sc_link, dev, cmd, addr, flag, p));
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: scsipi_verbose.c,v 1.10 1999/02/24 18:54:03 jwise Exp $ */
/* $NetBSD: scsipi_verbose.c,v 1.11 2000/03/30 00:00:55 augustss Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -278,7 +278,7 @@ asc2ascii(asc, ascq, result)
unsigned char asc, ascq;
char *result;
{
register int i = 0;
int i = 0;
while (adesc[i].description != NULL) {
if (adesc[i].asc == asc && adesc[i].ascq == ascq)
@ -303,7 +303,7 @@ scsipi_print_sense_data(sense, verbosity)
int verbosity;
{
int32_t info;
register int i, j, k;
int i, j, k;
char *sbs, *s = (char *) sense;
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: scsipiconf.h,v 1.38 2000/03/23 07:01:44 thorpej Exp $ */
/* $NetBSD: scsipiconf.h,v 1.39 2000/03/30 00:00:55 augustss Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@ -491,7 +491,7 @@ static __inline u_int32_t
_2btol(bytes)
const u_int8_t *bytes;
{
register u_int32_t rv;
u_int32_t rv;
rv = (bytes[0] << 8) |
bytes[1];
@ -502,7 +502,7 @@ static __inline u_int32_t
_3btol(bytes)
const u_int8_t *bytes;
{
register u_int32_t rv;
u_int32_t rv;
rv = (bytes[0] << 16) |
(bytes[1] << 8) |
@ -514,7 +514,7 @@ static __inline u_int32_t
_4btol(bytes)
const u_int8_t *bytes;
{
register u_int32_t rv;
u_int32_t rv;
rv = (bytes[0] << 24) |
(bytes[1] << 16) |
@ -560,7 +560,7 @@ static __inline u_int32_t
_2ltol(bytes)
const u_int8_t *bytes;
{
register u_int32_t rv;
u_int32_t rv;
rv = bytes[0] |
(bytes[1] << 8);
@ -571,7 +571,7 @@ static __inline u_int32_t
_3ltol(bytes)
const u_int8_t *bytes;
{
register u_int32_t rv;
u_int32_t rv;
rv = bytes[0] |
(bytes[1] << 8) |
@ -583,7 +583,7 @@ static __inline u_int32_t
_4ltol(bytes)
const u_int8_t *bytes;
{
register u_int32_t rv;
u_int32_t rv;
rv = bytes[0] |
(bytes[1] << 8) |

View File

@ -1,4 +1,4 @@
/* $NetBSD: sd.c,v 1.158 2000/03/13 23:52:37 soren Exp $ */
/* $NetBSD: sd.c,v 1.159 2000/03/30 00:00:56 augustss Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -657,10 +657,10 @@ done:
*/
void
sdstart(v)
register void *v;
void *v;
{
register struct sd_softc *sd = v;
register struct scsipi_link *sc_link = sd->sc_link;
struct sd_softc *sd = v;
struct scsipi_link *sc_link = sd->sc_link;
struct disklabel *lp = sd->sc_dk.dk_label;
struct buf *bp = 0;
struct scsipi_rw_big cmd_big;

View File

@ -1,4 +1,4 @@
/* $NetBSD: ss.c,v 1.29 2000/01/21 23:40:00 thorpej Exp $ */
/* $NetBSD: ss.c,v 1.30 2000/03/30 00:00:56 augustss Exp $ */
/*
* Copyright (c) 1995 Kenneth Stailey. All rights reserved.
@ -279,7 +279,7 @@ void
ssminphys(bp)
struct buf *bp;
{
register struct ss_softc *ss = ss_cd.cd_devs[SSUNIT(bp->b_dev)];
struct ss_softc *ss = ss_cd.cd_devs[SSUNIT(bp->b_dev)];
(ss->sc_link->adapter->scsipi_minphys)(bp);
@ -398,7 +398,7 @@ ssstart(v)
{
struct ss_softc *ss = v;
struct scsipi_link *sc_link = ss->sc_link;
register struct buf *bp;
struct buf *bp;
SC_DEBUG(sc_link, SDEV_DB2, ("ssstart "));
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: st.c,v 1.120 2000/02/21 05:11:09 mjacob Exp $ */
/* $NetBSD: st.c,v 1.121 2000/03/30 00:00:56 augustss Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -1164,7 +1164,7 @@ ststart(v)
{
struct st_softc *st = v;
struct scsipi_link *sc_link = st->sc_link;
register struct buf *bp;
struct buf *bp;
struct scsi_rw_tape cmd;
int flags, error;

View File

@ -1,4 +1,4 @@
/* $NetBSD: uk.c,v 1.28 2000/03/29 18:11:44 augustss Exp $ */
/* $NetBSD: uk.c,v 1.29 2000/03/30 00:00:57 augustss Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -244,7 +244,7 @@ ukioctl(dev, cmd, addr, flag, p)
int flag;
struct proc *p;
{
register struct uk_softc *uk = uk_cd.cd_devs[UKUNIT(dev)];
struct uk_softc *uk = uk_cd.cd_devs[UKUNIT(dev)];
return (scsipi_do_ioctl(uk->sc_link, dev, cmd, addr, flag, p));
}