aboutsummaryrefslogtreecommitdiff
path: root/sbin/fsirand/fsirand.c
diff options
context:
space:
mode:
authorKirk McKusick <mckusick@FreeBSD.org>2011-01-24 06:17:05 +0000
committerKirk McKusick <mckusick@FreeBSD.org>2011-01-24 06:17:05 +0000
commit7649cb0043cb41571f2748bc287da294a8c3b870 (patch)
tree745a3d9e1c16eed61f71f5c30e0dd0e1c250c1e8 /sbin/fsirand/fsirand.c
parent9c990fb2a4b18c1d8518ce5466757c5c2b89d8e8 (diff)
downloadsrc-7649cb0043cb41571f2748bc287da294a8c3b870.tar.gz
src-7649cb0043cb41571f2748bc287da294a8c3b870.zip
The dump, fsck_ffs, fsdb, fsirand, newfs, makefs, and quot utilities
include sys/time.h instead of time.h. This include is incorrect as per the manpages for the APIs and the POSIX definitions. This commit replaces sys/time.h where necessary with time.h. The commit also includes some minor style(9) header fixup in newfs. This commit is part of a larger effort by Garrett Cooper started in //depot/user/gcooper/posix-conformance-work/ -- to make FreeBSD more POSIX compliant. Submitted by: Garrett Cooper yanegomi at gmail dot com
Notes
Notes: svn path=/head/; revision=217769
Diffstat (limited to 'sbin/fsirand/fsirand.c')
-rw-r--r--sbin/fsirand/fsirand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fsirand/fsirand.c b/sbin/fsirand/fsirand.c
index 761ce5e40188..483879e45d33 100644
--- a/sbin/fsirand/fsirand.c
+++ b/sbin/fsirand/fsirand.c
@@ -35,9 +35,8 @@ static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
-#include <sys/disklabel.h>
#include <sys/param.h>
-#include <sys/time.h>
+#include <sys/disklabel.h>
#include <sys/resource.h>
#include <ufs/ufs/dinode.h>
@@ -50,6 +49,7 @@ static const char rcsid[] =
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
+#include <time.h>
#include <unistd.h>
static void usage(void) __dead2;