library: accumulated miscellaneous code/comment tweaks
Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
		| @@ -33,7 +33,7 @@ | ||||
| #include <sys/stat.h> | ||||
| #include <sys/types.h> | ||||
|  | ||||
| #include "procps-private.h" | ||||
| #include <proc/procps-private.h> | ||||
| #include <proc/diskstats.h> | ||||
|  | ||||
| /* 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) | ||||
|   | ||||
| @@ -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) | ||||
|   | ||||
| @@ -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) | ||||
|   | ||||
| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user