remove use of "register".

This commit is contained in:
lukem 1997-04-15 01:09:49 +00:00
parent 118a33df24
commit 93da79de2b
7 changed files with 67 additions and 67 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: dumprmt.c,v 1.11 1996/11/05 23:59:01 thorpej Exp $ */
/* $NetBSD: dumprmt.c,v 1.12 1997/04/15 01:09:49 lukem Exp $ */
/*-
* Copyright (c) 1980, 1993
@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)dumprmt.c 8.1 (Berkeley) 6/5/93";
#else
static char rcsid[] = "$NetBSD: dumprmt.c,v 1.11 1996/11/05 23:59:01 thorpej Exp $";
static char rcsid[] = "$NetBSD: dumprmt.c,v 1.12 1997/04/15 01:09:49 lukem Exp $";
#endif
#endif /* not lint */
@ -121,7 +121,7 @@ rmtconnaborted()
void
rmtgetconn()
{
register char *cp;
char *cp;
static struct servent *sp = NULL;
static struct passwd *pwd = NULL;
#ifdef notdef
@ -179,8 +179,8 @@ static int
okname(cp0)
char *cp0;
{
register char *cp;
register int c;
char *cp;
int c;
for (cp = cp0; *cp; cp++) {
c = *cp;
@ -292,8 +292,8 @@ struct mtget mts;
struct mtget *
rmtstatus()
{
register int i;
register char *cp;
int i;
char *cp;
if (rmtstate != TS_OPEN)
return (NULL);
@ -329,7 +329,7 @@ static int
rmtreply(cmd)
char *cmd;
{
register char *cp;
char *cp;
char code[30], emsg[BUFSIZ];
rmtgets(code, sizeof (code));
@ -371,7 +371,7 @@ rmtgets(line, len)
char *line;
int len;
{
register char *cp = line;
char *cp = line;
while (len > 1) {
*cp = rmtgetb();

View File

@ -1,4 +1,4 @@
/* $NetBSD: itime.c,v 1.3 1995/03/18 14:55:01 cgd Exp $ */
/* $NetBSD: itime.c,v 1.4 1997/04/15 01:09:50 lukem Exp $ */
/*-
* Copyright (c) 1980, 1993
@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)itime.c 8.1 (Berkeley) 6/5/93";
#else
static char rcsid[] = "$NetBSD: itime.c,v 1.3 1995/03/18 14:55:01 cgd Exp $";
static char rcsid[] = "$NetBSD: itime.c,v 1.4 1997/04/15 01:09:50 lukem Exp $";
#endif
#endif /* not lint */
@ -112,8 +112,8 @@ static void
readdumptimes(df)
FILE *df;
{
register int i;
register struct dumptime *dtwalk;
int i;
struct dumptime *dtwalk;
for (;;) {
dtwalk = (struct dumptime *)calloc(1, sizeof (struct dumptime));
@ -139,8 +139,8 @@ readdumptimes(df)
void
getdumptime()
{
register struct dumpdates *ddp;
register int i;
struct dumpdates *ddp;
int i;
char *fname;
fname = disk;
@ -172,8 +172,8 @@ void
putdumptime()
{
FILE *df;
register struct dumpdates *dtwalk;
register int i;
struct dumpdates *dtwalk;
int i;
int fd;
char *fname;

View File

@ -1,4 +1,4 @@
/* $NetBSD: main.c,v 1.10 1997/04/10 05:36:24 lukem Exp $ */
/* $NetBSD: main.c,v 1.11 1997/04/15 01:09:51 lukem Exp $ */
/*-
* Copyright (c) 1980, 1991, 1993, 1994
@ -43,7 +43,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)main.c 8.4 (Berkeley) 4/15/94";
#else
static char rcsid[] = "$NetBSD: main.c,v 1.10 1997/04/10 05:36:24 lukem Exp $";
static char rcsid[] = "$NetBSD: main.c,v 1.11 1997/04/15 01:09:51 lukem Exp $";
#endif
#endif /* not lint */
@ -101,12 +101,12 @@ main(argc, argv)
int argc;
char *argv[];
{
register ino_t ino;
register int dirty;
register struct dinode *dp;
register struct fstab *dt;
register char *map;
register int ch;
ino_t ino;
int dirty;
struct dinode *dp;
struct fstab *dt;
char *map;
int ch;
int i, anydirskipped, bflag = 0, Tflag = 0, honorlevel = 1;
ino_t maxino;
time_t tnow;

View File

@ -1,4 +1,4 @@
/* $NetBSD: optr.c,v 1.6 1997/04/10 05:36:25 lukem Exp $ */
/* $NetBSD: optr.c,v 1.7 1997/04/15 01:09:52 lukem Exp $ */
/*-
* Copyright (c) 1980, 1988, 1993
@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)optr.c 8.2 (Berkeley) 1/6/94";
#else
static char rcsid[] = "$NetBSD: optr.c,v 1.6 1997/04/10 05:36:25 lukem Exp $";
static char rcsid[] = "$NetBSD: optr.c,v 1.7 1997/04/15 01:09:52 lukem Exp $";
#endif
#endif /* not lint */
@ -269,7 +269,7 @@ sendmes(tty, message)
char *tty, *message;
{
char t[50], buf[BUFSIZ];
register char *cp;
char *cp;
int lmsg = 1;
FILE *f_tty;
@ -406,9 +406,9 @@ quit(fmt, va_alist)
struct fstab *
allocfsent(fs)
register struct fstab *fs;
struct fstab *fs;
{
register struct fstab *new;
struct fstab *new;
new = (struct fstab *)malloc(sizeof (*fs));
if (new == NULL ||
@ -431,8 +431,8 @@ static struct pfstab *table;
void
getfstab()
{
register struct fstab *fs;
register struct pfstab *pf;
struct fstab *fs;
struct pfstab *pf;
if (setfsent() == 0) {
msg("Can't open %s for dump table information: %s\n",
@ -472,8 +472,8 @@ struct fstab *
fstabsearch(key)
char *key;
{
register struct pfstab *pf;
register struct fstab *fs;
struct pfstab *pf;
struct fstab *fs;
char *rn;
for (pf = table; pf != NULL; pf = pf->pf_next) {
@ -503,9 +503,9 @@ void
lastdump(arg)
char arg; /* w ==> just what to do; W ==> most recent dumps */
{
register int i;
register struct fstab *dt;
register struct dumpdates *dtwalk;
int i;
struct fstab *dt;
struct dumpdates *dtwalk;
char *lastname, *date;
int dumpme;
time_t tnow;

View File

@ -1,4 +1,4 @@
/* $NetBSD: tape.c,v 1.8 1997/04/10 05:36:26 lukem Exp $ */
/* $NetBSD: tape.c,v 1.9 1997/04/15 01:09:53 lukem Exp $ */
/*-
* Copyright (c) 1980, 1991, 1993
@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)tape.c 8.2 (Berkeley) 3/17/94";
#else
static char rcsid[] = "$NetBSD: tape.c,v 1.8 1997/04/10 05:36:26 lukem Exp $";
static char rcsid[] = "$NetBSD: tape.c,v 1.9 1997/04/15 01:09:53 lukem Exp $";
#endif
#endif /* not lint */
@ -418,8 +418,8 @@ close_rewind()
void
rollforward()
{
register struct req *p, *q, *prev;
register struct slave *tslp;
struct req *p, *q, *prev;
struct slave *tslp;
int i, size, savedtapea, got;
union u_spcl *ntb, *otb;
tslp = &slaves[SLAVES];
@ -714,7 +714,7 @@ void
enslave()
{
int cmd[2];
register int i, j;
int i, j;
master = getpid();
@ -757,7 +757,7 @@ enslave()
void
killall()
{
register int i;
int i;
for (i = 0; i < SLAVES; i++)
if (slaves[i].pid > 0)
@ -773,10 +773,10 @@ killall()
*/
static void
doslave(cmd, slave_number)
register int cmd;
int cmd;
int slave_number;
{
register int nread;
int nread;
int nextslave, size, wrote, eot_count;
sigset_t sigset;
@ -799,7 +799,7 @@ doslave(cmd, slave_number)
* Get list of blocks to dump, read the blocks into tape buffer
*/
while ((nread = atomic(read, cmd, (char *)slp->req, reqsiz)) == reqsiz) {
register struct req *p = slp->req;
struct req *p = slp->req;
for (trecno = 0; trecno < ntrec;
trecno += p->count, p += p->count) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: traverse.c,v 1.15 1996/11/30 18:03:27 cgd Exp $ */
/* $NetBSD: traverse.c,v 1.16 1997/04/15 01:09:54 lukem Exp $ */
/*-
* Copyright (c) 1980, 1988, 1991, 1993
@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)traverse.c 8.2 (Berkeley) 9/23/93";
#else
static char rcsid[] = "$NetBSD: traverse.c,v 1.15 1996/11/30 18:03:27 cgd Exp $";
static char rcsid[] = "$NetBSD: traverse.c,v 1.16 1997/04/15 01:09:54 lukem Exp $";
#endif
#endif /* not lint */
@ -89,7 +89,7 @@ static int searchdir __P((ino_t ino, daddr_t blkno, long size, long filesize));
*/
long
blockest(dp)
register struct dinode *dp;
struct dinode *dp;
{
long blkest, sizeest;
@ -145,9 +145,9 @@ mapfiles(maxino, tapesize)
ino_t maxino;
long *tapesize;
{
register int mode;
register ino_t ino;
register struct dinode *dp;
int mode;
ino_t ino;
struct dinode *dp;
int anydirskipped = 0;
for (ino = ROOTINO; ino < maxino; ino++) {
@ -193,10 +193,10 @@ mapdirs(maxino, tapesize)
ino_t maxino;
long *tapesize;
{
register struct dinode *dp;
register int i, isdir;
register char *map;
register ino_t ino;
struct dinode *dp;
int i, isdir;
char *map;
ino_t ino;
long filesize;
int ret, change = 0;
@ -254,7 +254,7 @@ dirindir(ino, blkno, ind_level, filesize)
long *filesize;
{
int ret = 0;
register int i;
int i;
daddr_t idblk[MAXNINDIR];
bread(fsbtodb(sblock, blkno), (char *)idblk, (int)sblock->fs_bsize);
@ -289,11 +289,11 @@ static int
searchdir(ino, blkno, size, filesize)
ino_t ino;
daddr_t blkno;
register long size;
long size;
long filesize;
{
register struct direct *dp;
register long loc, ret = 0;
struct direct *dp;
long loc, ret = 0;
char dblk[MAXBSIZE];
bread(fsbtodb(sblock, blkno), dblk, (int)size);
@ -335,7 +335,7 @@ searchdir(ino, blkno, size, filesize)
*/
void
dumpino(dp, ino)
register struct dinode *dp;
struct dinode *dp;
ino_t ino;
{
int ind_level, cnt;
@ -453,7 +453,7 @@ blksout(blkp, frags, ino)
int frags;
ino_t ino;
{
register daddr_t *bp;
daddr_t *bp;
int i, j, count, blks, tbperdb;
blks = howmany(frags * sblock->fs_fsize, TP_BSIZE);
@ -490,7 +490,7 @@ dumpmap(map, type, ino)
int type;
ino_t ino;
{
register int i;
int i;
char *cp;
spcl.c_type = type;
@ -507,7 +507,7 @@ void
writeheader(ino)
ino_t ino;
{
register int32_t sum, cnt, *lp;
int32_t sum, cnt, *lp;
spcl.c_inumber = ino;
spcl.c_magic = NFS_MAGIC;

View File

@ -1,4 +1,4 @@
/* $NetBSD: unctime.c,v 1.9 1995/03/18 14:55:11 cgd Exp $ */
/* $NetBSD: unctime.c,v 1.10 1997/04/15 01:09:55 lukem Exp $ */
/*-
* Copyright (c) 1980, 1993
@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)unctime.c 8.2 (Berkeley) 6/14/94";
#else
static char rcsid[] = "$NetBSD: unctime.c,v 1.9 1995/03/18 14:55:11 cgd Exp $";
static char rcsid[] = "$NetBSD: unctime.c,v 1.10 1997/04/15 01:09:55 lukem Exp $";
#endif
#endif /* not lint */
@ -103,7 +103,7 @@ static int
lookup(str)
char *str;
{
register char *cp, *cp2;
char *cp, *cp2;
for (cp = months, cp2 = str; *cp != '\0'; cp += 3)
if (strncmp(cp, cp2, 3) == 0)