mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 05:58:57 +00:00
Put includes in alphabetical order. Use fprintf() in usage().
This commit is contained in:
parent
f9b1ba8f7f
commit
997485f93c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=29848
@ -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 <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <err.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <memory.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
#include <memory.h>
|
||||
#include <err.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#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;
|
||||
|
Loading…
Reference in New Issue
Block a user