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/utilities.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/utilities.c')
-rw-r--r-- | sbin/restore/utilities.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sbin/restore/utilities.c b/sbin/restore/utilities.c index 1e6ccfc..837213d 100644 --- a/sbin/restore/utilities.c +++ b/sbin/restore/utilities.c @@ -61,7 +61,7 @@ void pathcheck(name) char *name; { - register char *cp; + char *cp; struct entry *ep; char *start; @@ -88,7 +88,7 @@ pathcheck(name) */ void mktempname(ep) - register struct entry *ep; + struct entry *ep; { char oldname[MAXPATHLEN]; @@ -162,7 +162,7 @@ newnode(np) */ void removenode(ep) - register struct entry *ep; + struct entry *ep; { char *cp; @@ -185,7 +185,7 @@ removenode(ep) */ void removeleaf(ep) - register struct entry *ep; + struct entry *ep; { char *cp; @@ -274,7 +274,7 @@ addwhiteout(name) */ void delwhiteout(ep) - register struct entry *ep; + struct entry *ep; { char *name; @@ -298,7 +298,7 @@ ino_t lowerbnd(start) ino_t start; { - register struct entry *ep; + struct entry *ep; for ( ; start < maxino; start++) { ep = lookupino(start); @@ -317,7 +317,7 @@ ino_t upperbnd(start) ino_t start; { - register struct entry *ep; + struct entry *ep; for ( ; start > ROOTINO; start--) { ep = lookupino(start); @@ -334,7 +334,7 @@ upperbnd(start) */ void badentry(ep, msg) - register struct entry *ep; + struct entry *ep; char *msg; { @@ -361,7 +361,7 @@ badentry(ep, msg) */ char * flagvalues(ep) - register struct entry *ep; + struct entry *ep; { static char flagbuf[BUFSIZ]; |