Date: Sun, 23 Apr 2017 01:17:59 +0000 (UTC) From: Ngie Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r317310 - head/lib/libgeom Message-ID: <201704230117.v3N1Hxh9090502@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704230117.v3N1Hxh9090502>