]> granicus.if.org Git - procps-ng/commit
top: correct, improve and otherwise tweak configs_read
authorJim Warner <james.warner@comcast.net>
Tue, 20 Aug 2013 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Fri, 30 Aug 2013 12:08:25 +0000 (22:08 +1000)
commit819ede1a6bc25d732cf84d15c48be9ca86f336a2
tree2c7ced0770c0a68c7b64dc5f33f27123418b20ca
parent80e678343653ccadaaf66bf719b3da9d6168d9ec
top: correct, improve and otherwise tweak configs_read

This patch addresses the four '-Wunused-result' errors
generated whenever an optimized compile is invoked. It
also made the configs_read() guy a little more robust.

In the process, some logic was rearranged slightly and
some comments were re-indented simply for consistency.

Reference(s):
warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c