library: tweak formatting for readstat header and code
This patch mostly just eliminates darn tab characters. Plus the library function declarations and definitions have been standardized. Most visibly, the input params now have all been indented on their own separate line. The following names were changed to more closely match meminfo.c or provide a certain symmetry. Unfortunately that also impacted some other pgms which were updated. . 'procps_stat_get' evolved into 'procps_stat_get_sys' . 'procps_stat_info' is now known as 'procps_statinfo' [and just a little trailing whitespace was eliminated] Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
1 parent
c3fd7473c5
commit
6bb1a033b4
5 files changed
+137
-122
No files matched your search
+4
-4
@@ -61,7 +61,7 @@
|
||||
#include <sys/mman.h>
|
||||
#include <sys/resource.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
|
||||
#include "c.h"
|
||||
#include "../proc/readproc.h"
|
||||
#include "../proc/sysinfo.h"
|
||||
@@ -98,14 +98,14 @@ extern long Hertz;
|
||||
|
||||
static void get_boot_time(void)
|
||||
{
|
||||
struct procps_stat_info *sys_info;
|
||||
if (procps_stat_new(&sys_info) < 0)
|
||||
struct procps_statinfo *sys_info;
|
||||
if (procps_stat_new(&sys_info) < 0)
|
||||
xerrx(EXIT_FAILURE,
|
||||
_("Unable to create system stat structure"));
|
||||
if (procps_stat_read(sys_info,0) < 0)
|
||||
xerrx(EXIT_FAILURE,
|
||||
_("Unable to read system stat information"));
|
||||
boot_time = procps_stat_get(sys_info, PROCPS_STAT_BTIME);
|
||||
boot_time = procps_stat_get_sys(sys_info, PROCPS_STAT_BTIME);
|
||||
procps_stat_unref(sys_info);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user