lib/libhammer: don't hide sysctlbyname(3) results
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Mon, 26 Jan 2015 18:20:38 +0000 (03:20 +0900)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Sat, 7 Feb 2015 11:45:06 +0000 (12:45 +0100)
commitb1eaba809156816907c4b763d50402bce0406955
tree9ba5bc2259f2b9aaaa8d0bce1f3f760d0577e358
parente04ee2deffe511013c324e593719d66829589284
lib/libhammer: don't hide sysctlbyname(3) results

This patch makes libhammer_btree_stats() and libhammer_io_stats() check
return value of each sysctlbyname(3) instead of only returning the last
result.

Closes: #2779
lib/libhammer/stats.c