diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-09-18 17:43:16 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-09-18 17:43:16 +0000 |
commit | 7bcd34acfad0ac7aa7af49eee26c04a041036d09 (patch) | |
tree | 3351556c103c3d6273c2668222f748694258b1a4 /sbin/fsck_ext2fs/preen.c | |
parent | 99bd170b24532a76d75bab53ef3c13b4dfc7348e (diff) |
cleanups and endianness fixes. Mostly from NetBSD
Diffstat (limited to 'sbin/fsck_ext2fs/preen.c')
-rw-r--r-- | sbin/fsck_ext2fs/preen.c | 32 |
1 files changed, 10 insertions, 22 deletions
diff --git a/sbin/fsck_ext2fs/preen.c b/sbin/fsck_ext2fs/preen.c index f9183fe44a7..2ea22ddb1e9 100644 --- a/sbin/fsck_ext2fs/preen.c +++ b/sbin/fsck_ext2fs/preen.c @@ -1,5 +1,5 @@ -/* $OpenBSD: preen.c,v 1.3 1997/06/14 04:16:58 downsj Exp $ */ -/* $NetBSD: preen.c,v 1.1 1997/06/11 11:21:59 bouyer Exp $ */ +/* $OpenBSD: preen.c,v 1.4 2001/09/18 17:43:15 art Exp $ */ +/* $NetBSD: preen.c,v 1.2 1997/09/14 14:27:30 lukem Exp $ */ /* * Copyright (c) 1997 Manuel Bouyer. @@ -35,18 +35,6 @@ * SUCH DAMAGE. */ -#ifndef lint -#if 0 -static char sccsid[] = "@(#)preen.c 8.3 (Berkeley) 12/6/94"; -#else -#if 0 -static char rcsid[] = "$NetBSD: preen.c,v 1.1 1997/06/11 11:21:59 bouyer Exp $"; -#else -static char rcsid[] = "$OpenBSD: preen.c,v 1.3 1997/06/14 04:16:58 downsj Exp $"; -#endif -#endif -#endif /* not lint */ - #include <sys/param.h> #include <sys/stat.h> #include <sys/wait.h> @@ -83,9 +71,9 @@ checkfstab(preen, maxrun, docheck, chkit) int preen, maxrun; int (*docheck)(), (*chkit)(); { - 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; @@ -206,8 +194,8 @@ struct disk * finddisk(name) char *name; { - register struct disk *dk, **dkp; - register char *p; + struct disk *dk, **dkp; + char *p; size_t len; for (p = name + strlen(name) - 1; p >= name; --p) @@ -247,7 +235,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) { @@ -275,10 +263,10 @@ addpart(name, fsname, auxdata) int startdisk(dk, checkit) - register struct disk *dk; + struct disk *dk; int (*checkit)(); { - register struct part *pt = dk->part; + struct part *pt = dk->part; dk->pid = fork(); if (dk->pid < 0) { |