summaryrefslogtreecommitdiff
path: root/sbin/scan_ffs
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2018-04-26 15:55:15 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2018-04-26 15:55:15 +0000
commit29364884c57d94778b19fe39a672361fa95d142a (patch)
tree3c4a4140d25e12efb0365d7b85973f78dae66999 /sbin/scan_ffs
parent3c5ad4178e6c30cb1550a85f0e5a0b252cb87297 (diff)
Prefer <fcntl.h> over <sys/fcntl.h> in userland
While here, delete some extra #includes and apply style(9) sort rules. ok deraadt@ krw@ mpi@
Diffstat (limited to 'sbin/scan_ffs')
-rw-r--r--sbin/scan_ffs/scan_ffs.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/sbin/scan_ffs/scan_ffs.c b/sbin/scan_ffs/scan_ffs.c
index 83d330160d1..cb80daead4f 100644
--- a/sbin/scan_ffs/scan_ffs.c
+++ b/sbin/scan_ffs/scan_ffs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scan_ffs.c,v 1.21 2015/11/23 19:19:30 deraadt Exp $ */
+/* $OpenBSD: scan_ffs.c,v 1.22 2018/04/26 15:55:14 guenther Exp $ */
/*
* Copyright (c) 1998 Niklas Hallqvist, Tobias Weingartner
@@ -26,15 +26,16 @@
*/
#include <sys/types.h>
-#include <sys/fcntl.h>
#include <ufs/ffs/fs.h>
-#include <unistd.h>
-#include <stdlib.h>
+
+#include <err.h>
+#include <fcntl.h>
+#include <limits.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <time.h>
-#include <limits.h>
-#include <err.h>
+#include <unistd.h>
#include <util.h>
#define SBCOUNT 64 /* XXX - Should be configurable */