diff options
author | ngie <ngie@FreeBSD.org> | 2017-05-31 08:40:46 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2017-05-31 08:40:46 +0000 |
commit | 42644e9f675dbfcbb3004047407e52b8c91e7134 (patch) | |
tree | 5e557573a63a77f2ee030214494eb35c9024e47b /lib | |
parent | d904a582e1d5d155f808ff6b51db862298bc609f (diff) | |
download | FreeBSD-src-42644e9f675dbfcbb3004047407e52b8c91e7134.zip FreeBSD-src-42644e9f675dbfcbb3004047407e52b8c91e7134.tar.gz |
MFC r317311,r317312,r319019:
r317311:
Check for failures from getpagesize(3)
Return errno on failure, similar to the open(2) call above it.
CID: 1193753
r317312:
Fix type for `pagesize` to match the return type for getpagesize(3)
to fix the build
Pointyhat to: ngie
r319019:
Remove getpagesize(3) error checking added in r317312
getpagesize(3) no longer fails as of r317436.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libgeom/geom_stats.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libgeom/geom_stats.c b/lib/libgeom/geom_stats.c index 539c320..c87dd31 100644 --- a/lib/libgeom/geom_stats.c +++ b/lib/libgeom/geom_stats.c @@ -42,8 +42,8 @@ #include <libgeom.h> /************************************************************/ -static uint npages, pagesize, spp; -static int statsfd = -1; +static uint npages, spp; +static int pagesize, statsfd = -1; static u_char *statp; void |