From 997485f93c5524d0b14176e7a12d6ac0d9c79f20 Mon Sep 17 00:00:00 2001 From: Philippe Charnier Date: Thu, 25 Sep 1997 06:42:30 +0000 Subject: [PATCH] Put includes in alphabetical order. Use fprintf() in usage(). --- usr.sbin/mkdosfs/mkdosfs.c | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/usr.sbin/mkdosfs/mkdosfs.c b/usr.sbin/mkdosfs/mkdosfs.c index 6fc9276f5d9b..f52a29c4abdd 100644 --- a/usr.sbin/mkdosfs/mkdosfs.c +++ b/usr.sbin/mkdosfs/mkdosfs.c @@ -28,20 +28,23 @@ /* * Create an MS-DOS (FAT) file system. - * - * $Id: mkdosfs.c,v 1.4 1997/02/22 16:06:38 peter Exp $ */ +#ifndef lint +static const char rcsid[] = + "$Id$"; +#endif /* not lint */ + #include #include +#include +#include +#include +#include #include #include #include #include -#include -#include -#include -#include #include "bootcode.h" #include "dosfs.h" @@ -93,11 +96,11 @@ table[] = 0, 0, 0, "4.4BSD ", "FAT12 "}, }; -void +static void usage(void) { - fprintf(stderr, "usage: "); - errx(2, "[-f kbytes] [-L label] device"); + fprintf(stderr, "usage: mkdosfs [-f kbytes] [-L label] device\n"); + exit(2); } unsigned @@ -117,7 +120,7 @@ findformat(int fd) */ if(fstat(fd, &sb) == -1) - err(1, "Huh? Cannot fstat()"); /* Cannot happen */ + err(1, "huh? cannot fstat()"); /* Cannot happen */ if(S_ISREG(sb.st_mode)) { off_t o;