diff options
author | obrien <obrien@FreeBSD.org> | 2002-03-20 17:55:10 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-03-20 17:55:10 +0000 |
commit | 73c6870b18b8289171acd66d63bdd7ce8fb819b6 (patch) | |
tree | c6081460d17e593ae6ed744bc0f22972f9c9e461 /sbin/restore/dirs.c | |
parent | b132efc524eb66518b26bf553bd07698212a0838 (diff) | |
download | FreeBSD-src-73c6870b18b8289171acd66d63bdd7ce8fb819b6.zip FreeBSD-src-73c6870b18b8289171acd66d63bdd7ce8fb819b6.tar.gz |
Remove 'register' keyword.
It does not help modern compilers, and some may take some hit from it.
(I also found several functions that listed *every* of its 10 local vars with
"register" -- just how many free registers do people think machines have?)
Diffstat (limited to 'sbin/restore/dirs.c')
-rw-r--r-- | sbin/restore/dirs.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/sbin/restore/dirs.c b/sbin/restore/dirs.c index e822f5d..46cd7f3 100644 --- a/sbin/restore/dirs.c +++ b/sbin/restore/dirs.c @@ -141,8 +141,8 @@ void extractdirs(genmode) int genmode; { - register int i; - register struct dinode *ip; + int i; + struct dinode *ip; struct inotab *itp; struct direct nulldir; int fd; @@ -229,8 +229,8 @@ treescan(pname, ino, todo) ino_t ino; long (*todo) __P((char *, ino_t, int)); { - register struct inotab *itp; - register struct direct *dp; + struct inotab *itp; + struct direct *dp; int namelen; long bpt; char locname[MAXPATHLEN + 1]; @@ -321,8 +321,8 @@ searchdir(inum, name) ino_t inum; char *name; { - register struct direct *dp; - register struct inotab *itp; + struct direct *dp; + struct inotab *itp; int len; itp = inotablookup(inum); @@ -347,9 +347,9 @@ putdir(buf, size) long size; { struct direct cvtbuf; - register struct odirect *odp; + struct odirect *odp; struct odirect *eodp; - register struct direct *dp; + struct direct *dp; long loc, i; if (cvtflag) { @@ -443,8 +443,8 @@ flushent() static void dcvt(odp, ndp) - register struct odirect *odp; - register struct direct *ndp; + struct odirect *odp; + struct direct *ndp; { memset(ndp, 0, (long)(sizeof *ndp)); @@ -464,7 +464,7 @@ dcvt(odp, ndp) */ static void rst_seekdir(dirp, loc, base) - register RST_DIR *dirp; + RST_DIR *dirp; long loc, base; { @@ -484,9 +484,9 @@ rst_seekdir(dirp, loc, base) */ struct direct * rst_readdir(dirp) - register RST_DIR *dirp; + RST_DIR *dirp; { - register struct direct *dp; + struct direct *dp; for (;;) { if (dirp->dd_loc == 0) { @@ -571,8 +571,8 @@ static RST_DIR * opendirfile(name) const char *name; { - register RST_DIR *dirp; - register int fd; + RST_DIR *dirp; + int fd; if ((fd = open(name, O_RDONLY)) == -1) return (NULL); @@ -658,7 +658,7 @@ genliteraldir(name, ino) char *name; ino_t ino; { - register struct inotab *itp; + struct inotab *itp; int ofile, dp, i, size; char buf[BUFSIZ]; @@ -720,7 +720,7 @@ allocinotab(ino, dip, seekpt) struct dinode *dip; long seekpt; { - register struct inotab *itp; + struct inotab *itp; struct modeinfo node; itp = calloc(1, sizeof(struct inotab)); @@ -752,7 +752,7 @@ static struct inotab * inotablookup(ino) ino_t ino; { - register struct inotab *itp; + struct inotab *itp; for (itp = inotab[INOHASH(ino)]; itp != NULL; itp = itp->t_next) if (itp->t_ino == ino) |