summaryrefslogtreecommitdiffstats
path: root/sbin/restore/interactive.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/interactive.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/interactive.c')
-rw-r--r--sbin/restore/interactive.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/sbin/restore/interactive.c b/sbin/restore/interactive.c
index 1fd8930..e04f48e 100644
--- a/sbin/restore/interactive.c
+++ b/sbin/restore/interactive.c
@@ -96,7 +96,7 @@ static void printlist __P((char *, char *));
void
runcmdshell()
{
- register struct entry *np;
+ struct entry *np;
ino_t ino;
struct arglist arglist;
char curdir[MAXPATHLEN];
@@ -307,7 +307,7 @@ getcmd(curdir, cmd, name, size, ap)
struct arglist *ap;
int size;
{
- register char *cp;
+ char *cp;
static char input[BUFSIZ];
char output[BUFSIZ];
# define rawname input /* save space by reusing input buffer */
@@ -393,7 +393,7 @@ static char *
copynext(input, output)
char *input, *output;
{
- register char *cp, *bp;
+ char *cp, *bp;
char quote;
for (cp = input; *cp == ' ' || *cp == '\t'; cp++)
@@ -444,7 +444,7 @@ canon(rawname, canonname, len)
char *rawname, *canonname;
int len;
{
- register char *cp, *np;
+ char *cp, *np;
if (strcmp(rawname, ".") == 0 || strncmp(rawname, "./", 2) == 0)
(void) strcpy(canonname, "");
@@ -500,8 +500,8 @@ printlist(name, basename)
char *name;
char *basename;
{
- register struct afile *fp, *list, *listp;
- register struct direct *dp;
+ struct afile *fp, *list, *listp;
+ struct direct *dp;
struct afile single;
RST_DIR *dirp;
int entries, len, namelen;
@@ -583,7 +583,7 @@ static void
mkentry(name, dp, fp)
char *name;
struct direct *dp;
- register struct afile *fp;
+ struct afile *fp;
{
char *cp;
struct entry *np;
@@ -644,10 +644,10 @@ mkentry(name, dp, fp)
*/
static void
formatf(list, nentry)
- register struct afile *list;
+ struct afile *list;
int nentry;
{
- register struct afile *fp, *endlist;
+ struct afile *fp, *endlist;
int width, bigino, haveprefix, havepostfix;
int i, j, w, precision, columns, lines;
@@ -744,7 +744,7 @@ glob_stat(name, stp)
const char *name;
struct stat *stp;
{
- register struct direct *dp;
+ struct direct *dp;
dp = pathsearch(name);
if (dp == NULL || (!dflag && TSTINO(dp->d_ino, dumpmap) == 0) ||
@@ -762,7 +762,7 @@ glob_stat(name, stp)
*/
static int
fcmp(f1, f2)
- register const void *f1, *f2;
+ const void *f1, *f2;
{
return (strcmp(((struct afile *)f1)->fname,
((struct afile *)f2)->fname));
OpenPOWER on IntegriCloud