related: adapt to changes in 'context' structure names
Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
@@ -59,9 +59,9 @@
|
||||
return 0; \
|
||||
} }
|
||||
|
||||
extern struct procps_pidsinfo *Pids_info;
|
||||
extern enum pids_item *Pids_items;
|
||||
extern int Pids_index;
|
||||
extern struct pids_info *Pids_info;
|
||||
extern enum pids_item *Pids_items;
|
||||
extern int Pids_index;
|
||||
|
||||
// most of these need not be extern, they're unique to output.c
|
||||
// (but for future flexibility the easiest path has been taken)
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
|
||||
// --- <pids> interface begin ||||||||||||||||||||||||||||||||||||||||||||
|
||||
// -----------------------------------------------------------------------
|
||||
struct procps_pidsinfo *Pids_info = NULL; // our required <pids> context
|
||||
struct pids_info *Pids_info = NULL; // our required <pids> context
|
||||
enum pids_item *Pids_items; // allocated as PIDSITEMS
|
||||
int Pids_index; // actual number of active enums
|
||||
|
||||
|
||||
@@ -91,7 +91,7 @@ extern long Hertz;
|
||||
|
||||
static void get_boot_time(void)
|
||||
{
|
||||
struct procps_statinfo *stat_info = NULL;
|
||||
struct stat_info *stat_info = NULL;
|
||||
if (procps_stat_new(&stat_info) < 0)
|
||||
xerrx(EXIT_FAILURE, _("Unable to create NEW ystem stat structure"));
|
||||
boot_time = PROCPS_STAT_GET(stat_info, PROCPS_STAT_SYS_TIME_OF_BOOT, ul_int);
|
||||
@@ -100,7 +100,7 @@ static void get_boot_time(void)
|
||||
|
||||
static void get_memory_total()
|
||||
{
|
||||
struct procps_meminfo *mem_info = NULL;
|
||||
struct meminfo_info *mem_info = NULL;
|
||||
if (procps_meminfo_new(&mem_info) < 0)
|
||||
xerrx(EXIT_FAILURE,
|
||||
_("Unable to create meminfo structure"));
|
||||
|
||||
Reference in New Issue
Block a user