Simpe C updates to ksysguardd code
Summary:
Use C 11, it has better defaults
Simplify if - chain
Reduce variable scope
Don't check before free
Reviewers: apol
Reviewed By: apol
Subscribers: apol, plasma-devel
Tags: Plasma
Differential Revision: https://phabricator.kde.org/D18576