From 8ba07209f040b55adf6c0ab620935e9514b1e2af Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Thu, 24 Nov 2016 12:12:12 -0600 Subject: [PATCH] library: accumulated miscellaneous code/comment tweaks Signed-off-by: Jim Warner --- proc/diskstats.c | 4 ++-- proc/meminfo.c | 2 +- proc/slabinfo.c | 4 ++-- proc/vmstat.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/proc/diskstats.c b/proc/diskstats.c index ff5fcddf..93b9abbf 100644 --- a/proc/diskstats.c +++ b/proc/diskstats.c @@ -33,7 +33,7 @@ #include #include -#include "procps-private.h" +#include #include /* The following define will cause the 'node_add' function to maintain our | @@ -923,7 +923,7 @@ PROCPS_EXPORT struct diskstats_stack *procps_diskstats_select ( return NULL; if (!info->select_ext.extents - && !(diskstats_stacks_alloc(&info->select_ext, 1))) + && (!diskstats_stacks_alloc(&info->select_ext, 1))) return NULL; if (info->select_ext.dirty_stacks) diff --git a/proc/meminfo.c b/proc/meminfo.c index 549b0340..cfcf5b02 100644 --- a/proc/meminfo.c +++ b/proc/meminfo.c @@ -860,7 +860,7 @@ PROCPS_EXPORT struct meminfo_stack *procps_meminfo_select ( meminfo_extents_free_all(info); } if (!info->extents - && !(meminfo_stacks_alloc(info, 1))) + && (!meminfo_stacks_alloc(info, 1))) return NULL; if (info->dirty_stacks) diff --git a/proc/slabinfo.c b/proc/slabinfo.c index 97933128..921ec601 100644 --- a/proc/slabinfo.c +++ b/proc/slabinfo.c @@ -253,7 +253,7 @@ static struct { QSR_t sortfunc; // sort cmp func for a specific type char *type2str; // the result type as a string value } Item_table[] = { -/* setsfunc sortfunc type2str +/* setsfunc sortfunc type2str ---------------------------- ----------- ---------- */ { RS(noop), QS(noop), TS_noop }, { RS(extra), QS(ul_int), TS_noop }, @@ -956,7 +956,7 @@ PROCPS_EXPORT struct slabinfo_stack *procps_slabinfo_select ( return NULL; if (!info->select_ext.extents - && !(slabinfo_stacks_alloc(&info->select_ext, 1))) + && (!slabinfo_stacks_alloc(&info->select_ext, 1))) return NULL; if (info->select_ext.dirty_stacks) diff --git a/proc/vmstat.c b/proc/vmstat.c index e012777b..32671ebb 100644 --- a/proc/vmstat.c +++ b/proc/vmstat.c @@ -1244,7 +1244,7 @@ PROCPS_EXPORT struct vmstat_stack *procps_vmstat_select ( vmstat_extents_free_all(info); } if (!info->extents - && !(vmstat_stacks_alloc(info, 1))) + && (!vmstat_stacks_alloc(info, 1))) return NULL; if (info->dirty_stacks)