[dm-devel] [PATCH 35/72] libmultipath: snprint_multipath_map_json(): remove unused argument
Martin Wilck
Martin.Wilck at suse.com
Sat Oct 12 21:28:20 UTC 2019
From: Martin Wilck <mwilck at suse.com>
Signed-off-by: Martin Wilck <mwilck at suse.com>
---
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
More information about the dm-devel
mailing list