summaryrefslogtreecommitdiffstats
path: root/sbin/restore/restore.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-03-20 17:55:10 +0000
committerobrien <obrien@FreeBSD.org>2002-03-20 17:55:10 +0000
commit73c6870b18b8289171acd66d63bdd7ce8fb819b6 (patch)
treec6081460d17e593ae6ed744bc0f22972f9c9e461 /sbin/restore/restore.c
parentb132efc524eb66518b26bf553bd07698212a0838 (diff)
downloadFreeBSD-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/restore.c')
-rw-r--r--sbin/restore/restore.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/sbin/restore/restore.c b/sbin/restore/restore.c
index 901439c..61cd432 100644
--- a/sbin/restore/restore.c
+++ b/sbin/restore/restore.c
@@ -80,7 +80,7 @@ addfile(name, ino, type)
ino_t ino;
int type;
{
- register struct entry *ep;
+ struct entry *ep;
long descend = hflag ? GOOD : FAIL;
char buf[100];
@@ -162,8 +162,8 @@ static struct entry *removelist;
void
removeoldleaves()
{
- register struct entry *ep, *nextep;
- register ino_t i, mydirino;
+ struct entry *ep, *nextep;
+ ino_t i, mydirino;
vprintf(stdout, "Mark entries to be removed.\n");
if ((ep = lookupino(WINO))) {
@@ -218,7 +218,7 @@ nodeupdates(name, ino, type)
ino_t ino;
int type;
{
- register struct entry *ep, *np, *ip;
+ struct entry *ep, *np, *ip;
long descend = GOOD;
int lookuptype = 0;
int key = 0;
@@ -526,8 +526,8 @@ keyval(key)
void
findunreflinks()
{
- register struct entry *ep, *np;
- register ino_t i;
+ struct entry *ep, *np;
+ ino_t i;
vprintf(stdout, "Find unreferenced names.\n");
for (i = ROOTINO; i < maxino; i++) {
@@ -574,7 +574,7 @@ findunreflinks()
void
removeoldnodes()
{
- register struct entry *ep, **prev;
+ struct entry *ep, **prev;
long change;
vprintf(stdout, "Remove old nodes (directories).\n");
@@ -604,7 +604,7 @@ void
createleaves(symtabfile)
char *symtabfile;
{
- register struct entry *ep;
+ struct entry *ep;
ino_t first;
long curvol;
@@ -683,8 +683,8 @@ createleaves(symtabfile)
void
createfiles()
{
- register ino_t first, next, last;
- register struct entry *ep;
+ ino_t first, next, last;
+ struct entry *ep;
long curvol;
vprintf(stdout, "Extract requested files\n");
@@ -779,8 +779,8 @@ createfiles()
void
createlinks()
{
- register struct entry *np, *ep;
- register ino_t i;
+ struct entry *np, *ep;
+ ino_t i;
char name[BUFSIZ];
if ((ep = lookupino(WINO))) {
@@ -819,8 +819,8 @@ createlinks()
void
checkrestore()
{
- register struct entry *ep;
- register ino_t i;
+ struct entry *ep;
+ ino_t i;
vprintf(stdout, "Check the symbol table.\n");
for (i = WINO; i < maxino; i++) {
OpenPOWER on IntegriCloud