]> granicus.if.org Git - procps-ng/commitdiff
top: adapt source to changes with includes, <STAT> api
authorJim Warner <james.warner@comcast.net>
Mon, 25 Apr 2016 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Tue, 26 Apr 2016 12:27:16 +0000 (22:27 +1000)
All other programs were able to accommodate the change
in name from readstat.h to stat.h without modification
because they were all using that procps.h header file.

Well now top can too (providing you ignore a comment).

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

index dfe53f17f369701b23e859ac20c4f351c72c02cc..a30228bd7295050835e4f624e523c8e322ae72de 100644 (file)
--- a/top/top.c
+++ b/top/top.c
@@ -232,7 +232,7 @@ enum Rel_items {
 };
         // mem stack results extractor macro, where e=rel enum
 #define MEM_VAL(e) Mem_stack->head[e].result.ul_int
-        // --------------------------------------------- <proc/readstat.h>
+        // ------------------------------------------------- <proc/stat.h>
 static struct procps_stat *Cpu_ctx;
 static struct procps_jiffs_hist *Cpu_jiffs;
         // ------------------------------------------------- <proc/pids.h>
index f16e7b8c89cdc3032e5c0cd6b357712c5a1c8776..9ecb055da16e10b769c0f36453c149e7413e4c17 100644 (file)
--- a/top/top.h
+++ b/top/top.h
@@ -20,8 +20,7 @@
 #ifndef _Itop
 #define _Itop
 
-#include <proc/pids.h>
-#include <proc/readstat.h>
+#include <proc/procps.h>
 
         /* Defines represented in configure.ac ----------------------------- */
 //#define BOOST_PERCNT            /* enable extra precision for two % fields */