library: normalize the readstat context structure name

The new library meminfo & vmstat modules use structure
names for their context which exactly mirror the names
of the very /proc/ files whose particulars they yield.

The one exception to this rule was the readstat module
whose struct was named statinfo yet the file was stat.

This commit simply renames that structure (only) so as
to hopefully establish such a naming convention as our
standard going forward. And, it's makes good symmetry.

[ this module's name itself is just perfect as it is ]

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner
2015-06-30 00:00:00 -05:00
committed by Craig Small
parent faf6d4dc93
commit e88b11f176
5 changed files with 35 additions and 35 deletions

View File

@ -298,7 +298,7 @@ static void new_format(void)
time_t the_time;
char timebuf[32];
struct procps_vmstat *vm_info;
struct procps_statinfo *sys_info;
struct procps_stat *sys_info;
struct procps_meminfo *mem_info;
sleep_half = (sleep_time / 2);
@ -837,7 +837,7 @@ static void disksum_format(void)
static void sum_format(void)
{
struct procps_statinfo *sys_info;
struct procps_stat *sys_info;
struct procps_vmstat *vm_info;
struct procps_meminfo *mem_info;
@ -896,7 +896,7 @@ static void sum_format(void)
static void fork_format(void)
{
struct procps_statinfo *sys_info;
struct procps_stat *sys_info;
if (procps_stat_new(&sys_info) < 0)
xerrx(EXIT_FAILURE,