diff options
author | phk <phk@FreeBSD.org> | 2002-03-17 09:01:41 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-03-17 09:01:41 +0000 |
commit | 2f8232ce043d9dae70826765f882f8af0d52f02f (patch) | |
tree | d9c4def453d2939384be8df4a336b25a44c31295 /sbin/newfs/newfs.c | |
parent | f7794e6e1a979e5ca74d519266213d8044ff2945 (diff) | |
download | FreeBSD-src-2f8232ce043d9dae70826765f882f8af0d52f02f.zip FreeBSD-src-2f8232ce043d9dae70826765f882f8af0d52f02f.tar.gz |
Remove __P() and register.
Set WARNS=2
This is the beginning of a pre-UFS2 cleanup of newfs.
Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'sbin/newfs/newfs.c')
-rw-r--r-- | sbin/newfs/newfs.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c index 8764a87..ff75555 100644 --- a/sbin/newfs/newfs.c +++ b/sbin/newfs/newfs.c @@ -205,18 +205,18 @@ int unlabeled; char device[MAXPATHLEN]; char *progname; -extern void mkfs __P((struct partition *, char *, int, int)); -static void usage __P((void)); -static void rewritelabel __P((char *s, int fd, register struct disklabel *lp)); +extern void mkfs (struct partition *, char *, int, int); +static void usage (void); +static void rewritelabel (char *s, int fd, register struct disklabel *lp); int main(argc, argv) int argc; char *argv[]; { - register int ch; - register struct partition *pp; - register struct disklabel *lp; + int ch; + struct partition *pp; + struct disklabel *lp; struct disklabel *getdisklabel(); struct partition oldpartition; struct stat st; @@ -578,7 +578,7 @@ void rewritelabel(s, fd, lp) char *s; int fd; - register struct disklabel *lp; + struct disklabel *lp; { #ifdef COMPAT if (unlabeled) |