Change this to support the new way swap device information is exported via sysctl, and clean up some style and (size_t != int) issues.
Change this to support the new way swap device information is exported
via sysctl, and clean up some style and (size_t != int) issues.

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase