swap.c: Refactor getstats() and its usage
authorLaslo Hunhold <dev@frign.de>
Mon, 21 May 2018 21:03:34 +0000 (23:03 +0200)
committerAaron Marcher <me@drkhsh.at>
Mon, 21 May 2018 21:05:39 +0000 (23:05 +0200)
commit7f91ce265ea456b3096ccba7fdbb890bcf00e225
treed0541afb0ae5f7cc215b9db91d066f7db54f71da
parentceb13206a4d9f410ab49c3824c487658c341d8c8
swap.c: Refactor getstats() and its usage

Add a return value so we are able to check any errors and actually fail
when there has been a critical error instead of carrying on uselessly.
components/swap.c