aboutsummaryrefslogtreecommitdiff
path: root/sbin/quotacheck/preen.c
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2002-03-20 17:55:10 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2002-03-20 17:55:10 +0000
commit3d438ad61f57a1129d2db01947a14bf0fc86dbae (patch)
treec6081460d17e593ae6ed744bc0f22972f9c9e461 /sbin/quotacheck/preen.c
parenta2763677ecfaf662b19ea34d0a4936b62cbc6425 (diff)
downloadsrc-3d438ad61f57a1129d2db01947a14bf0fc86dbae.tar.gz
src-3d438ad61f57a1129d2db01947a14bf0fc86dbae.zip
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?)
Notes
Notes: svn path=/head/; revision=92806
Diffstat (limited to 'sbin/quotacheck/preen.c')
-rw-r--r--sbin/quotacheck/preen.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sbin/quotacheck/preen.c b/sbin/quotacheck/preen.c
index 62dc3d8e1acc..84ad2a222831 100644
--- a/sbin/quotacheck/preen.c
+++ b/sbin/quotacheck/preen.c
@@ -81,9 +81,9 @@ checkfstab(preen, maxrun, docheck, chkit)
int (*docheck)(struct fstab *);
int (*chkit)(char *, char *, long, int);
{
- register struct fstab *fsp;
- register struct disk *dk, *nextdisk;
- register struct part *pt;
+ struct fstab *fsp;
+ struct disk *dk, *nextdisk;
+ struct part *pt;
int ret, pid, retcode, passno, sumstatus, status;
long auxdata;
char *name;
@@ -205,8 +205,8 @@ static struct disk *
finddisk(name)
char *name;
{
- register struct disk *dk, **dkp;
- register char *p;
+ struct disk *dk, **dkp;
+ char *p;
size_t len;
p = strrchr(name, '/');
@@ -245,7 +245,7 @@ addpart(name, fsname, auxdata)
long auxdata;
{
struct disk *dk = finddisk(name);
- register struct part *pt, **ppt = &dk->part;
+ struct part *pt, **ppt = &dk->part;
for (pt = dk->part; pt; ppt = &pt->next, pt = pt->next)
if (strcmp(pt->name, name) == 0) {
@@ -273,10 +273,10 @@ addpart(name, fsname, auxdata)
static int
startdisk(dk, checkit)
- register struct disk *dk;
+ struct disk *dk;
int (*checkit)(char *, char *, long, int);
{
- register struct part *pt = dk->part;
+ struct part *pt = dk->part;
dk->pid = fork();
if (dk->pid < 0) {