From: Martin Wilck <mwilck@xxxxxxxx> Signed-off-by: Martin Wilck <mwilck@xxxxxxxx> --- libmultipath/print.c | 4 ++-- libmultipath/print.h | 2 +- multipathd/cli_handlers.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libmultipath/print.c b/libmultipath/print.c index 74c0d62d..8fa86267 100644 --- a/libmultipath/print.c +++ b/libmultipath/print.c @@ -1339,8 +1339,8 @@ snprint_multipath_fields_json (char * buff, int len, } int -snprint_multipath_map_json (char * buff, int len, - const struct multipath * mpp, int last){ +snprint_multipath_map_json (char * buff, int len, const struct multipath * mpp) +{ int fwd = 0; fwd += snprint_json_header(buff, len); diff --git a/libmultipath/print.h b/libmultipath/print.h index 7e36ec63..0c909e75 100644 --- a/libmultipath/print.h +++ b/libmultipath/print.h @@ -125,7 +125,7 @@ char *snprint_config(const struct config *conf, int *len, const struct _vector *hwtable, const struct _vector *mpvec); int snprint_multipath_map_json (char * buff, int len, - const struct multipath * mpp, int last); + const struct multipath * mpp); int snprint_blacklist_report (struct config *, char *, int); int snprint_wildcards (char *, int); int snprint_status (char *, int, const struct vectors *); diff --git a/multipathd/cli_handlers.c b/multipathd/cli_handlers.c index 8a899049..371b0a79 100644 --- a/multipathd/cli_handlers.c +++ b/multipathd/cli_handlers.c @@ -237,7 +237,7 @@ show_map_json (char ** r, int * len, struct multipath * mpp, c = reply; - c += snprint_multipath_map_json(c, maxlen, mpp, 1); + c += snprint_multipath_map_json(c, maxlen, mpp); again = ((c - reply) == maxlen); REALLOC_REPLY(reply, again, maxlen); -- 2.23.0 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel