summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_ffs/fsutil.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/fsck_ffs/fsutil.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/fsck_ffs/fsutil.c')
-rw-r--r--sbin/fsck_ffs/fsutil.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sbin/fsck_ffs/fsutil.c b/sbin/fsck_ffs/fsutil.c
index 74dda99..1067693 100644
--- a/sbin/fsck_ffs/fsutil.c
+++ b/sbin/fsck_ffs/fsutil.c
@@ -147,7 +147,7 @@ inoinfo(inum)
void
bufinit()
{
- register struct bufarea *bp;
+ struct bufarea *bp;
long bufcnt, i;
char *bufp;
@@ -187,7 +187,7 @@ getdatablk(blkno, size)
ufs_daddr_t blkno;
long size;
{
- register struct bufarea *bp;
+ struct bufarea *bp;
for (bp = bufhead.b_next; bp != &bufhead; bp = bp->b_next)
if (bp->b_bno == fsbtodb(&sblock, blkno))
@@ -213,7 +213,7 @@ foundit:
void
getblk(bp, blk, size)
- register struct bufarea *bp;
+ struct bufarea *bp;
ufs_daddr_t blk;
long size;
{
@@ -232,9 +232,9 @@ getblk(bp, blk, size)
void
flush(fd, bp)
int fd;
- register struct bufarea *bp;
+ struct bufarea *bp;
{
- register int i, j;
+ int i, j;
if (!bp->b_dirty)
return;
@@ -278,7 +278,7 @@ void
ckfini(markclean)
int markclean;
{
- register struct bufarea *bp, *nbp;
+ struct bufarea *bp, *nbp;
int ofsmodified, cnt = 0;
if (bkgrdflag) {
@@ -491,7 +491,7 @@ getpathname(namebuf, curdir, ino)
ino_t curdir, ino;
{
int len;
- register char *cp;
+ char *cp;
struct inodesc idesc;
static int busy = 0;
@@ -570,7 +570,7 @@ catchquit(sig)
*/
int
dofix(idesc, msg)
- register struct inodesc *idesc;
+ struct inodesc *idesc;
char *msg;
{
OpenPOWER on IntegriCloud