From 1f1b5ac31e07886d9b12e7c7f46848a43620944e Mon Sep 17 00:00:00 2001 From: Tokunori Ikegami Date: Thu, 27 Jan 2022 09:31:30 +0100 Subject: [PATCH] nvme: Use canonical types Use the more common type names. Signed-off-by: Tokunori Ikegami [dwagner: carved this change from other independ change] Signed-off-by: Daniel Wagner --- nvme.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvme.c b/nvme.c index 73ede42e..c9376a1f 100644 --- a/nvme.c +++ b/nvme.c @@ -3013,7 +3013,7 @@ static int get_ns_id(int argc, char **argv, struct command *cmd, struct plugin * { const char *desc = "Get namespce ID of a the block device."; int err = 0, fd; - unsigned nsid; + unsigned int nsid; OPT_ARGS(opts) = { OPT_END() @@ -5192,7 +5192,7 @@ static int dsm(int argc, char **argv, struct command *cmd, struct plugin *plugin nc = argconfig_parse_comma_sep_array(cfg.ctx_attrs, (int *)ctx_attrs, ARRAY_SIZE(ctx_attrs)); nb = argconfig_parse_comma_sep_array(cfg.blocks, (int *)nlbs, ARRAY_SIZE(nlbs)); - ns = argconfig_parse_comma_sep_array_long(cfg.slbas, (long long unsigned int *)slbas, ARRAY_SIZE(slbas)); + ns = argconfig_parse_comma_sep_array_long(cfg.slbas, (unsigned long long *)slbas, ARRAY_SIZE(slbas)); nr = max(nc, max(nb, ns)); if (!nr || nr > 256) { fprintf(stderr, "No range definition provided\n"); -- 2.50.1