svn commit: r317310 - head/lib/libgeom
Ngie Cooper
ngie at FreeBSD.org
Sun Apr 23 01:18:00 UTC 2017
Author: ngie
Date: Sun Apr 23 01:17:59 2017
New Revision: 317310
URL: https://svnweb.freebsd.org/changeset/base/317310
Log:
Minor style(9) fixups
Delete trailing whitespace and sort headers.
Leave libgeom.h's placement alone, per reasoning in r317289.
MFC after: 5 weeks
Sponsored by: Dell EMC Isilon
Modified:
head/lib/libgeom/geom_stats.c
Modified: head/lib/libgeom/geom_stats.c
==============================================================================
--- head/lib/libgeom/geom_stats.c Sat Apr 22 23:30:02 2017 (r317309)
+++ head/lib/libgeom/geom_stats.c Sun Apr 23 01:17:59 2017 (r317310)
@@ -29,20 +29,18 @@
* $FreeBSD$
*/
-#include <paths.h>
+#include <sys/types.h>
+#include <sys/devicestat.h>
+#include <sys/mman.h>
+#include <sys/time.h>
#include <errno.h>
#include <fcntl.h>
+#include <paths.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <libgeom.h>
-#include <sys/mman.h>
-#include <sys/time.h>
-#include <sys/types.h>
-#include <sys/devicestat.h>
-
-
/************************************************************/
static uint npages, pagesize, spp;
static int statsfd = -1;
@@ -67,7 +65,7 @@ geom_stats_resync(void)
if (statsfd == -1)
return;
for (;;) {
- p = mmap(statp, (npages + 1) * pagesize,
+ p = mmap(statp, (npages + 1) * pagesize,
PROT_READ, MAP_SHARED, statsfd, 0);
if (p == MAP_FAILED)
break;
More information about the svn-src-all
mailing list