library: clean up some miscellaneous compiler warnings

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner
2018-06-03 00:00:00 -05:00
committed by Craig Small
parent 2c6a480cc8
commit 97d078a9af
6 changed files with 8 additions and 4 deletions

View File

@@ -501,7 +501,6 @@ static void diskstats_itemize_stacks_all (
static inline int diskstats_items_check_failed (
struct ext_support *this,
enum diskstats_item *items,
int numitems)
{
@@ -715,7 +714,7 @@ static int diskstats_stacks_reconfig_maybe (
enum diskstats_item *items,
int numitems)
{
if (diskstats_items_check_failed(this, items, numitems))
if (diskstats_items_check_failed(items, numitems))
return -1;
/* is this the first time or have things changed since we were last called?
if so, gotta' redo all of our stacks stuff ... */
@@ -1054,4 +1053,5 @@ PROCPS_EXPORT struct diskstats_result *xtra_diskstats_val (
fprintf(stderr, "%s line %d: was %s, expected %s\n", file, lineno, typestr, str);
}
return &stack->head[relative_enum];
(void)info;
} // end: xtra_diskstats_val