]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-print: Use enum nvme_print_flags for nvme_show_id_ctrl
authorDaniel Wagner <dwagner@suse.de>
Wed, 5 Apr 2023 12:31:25 +0000 (14:31 +0200)
committerDaniel Wagner <wagi@monom.org>
Wed, 5 Apr 2023 15:29:12 +0000 (17:29 +0200)
gcc is complaining that the function declaration and definition do not
match. Update the declaration accordingly.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
nvme-print.h

index 7a4ceeea51316d77c46e691ef745fe4c1886900c..91106e2b7732fbc55c394e3b32d9ca06e7ca4ce3 100644 (file)
@@ -21,7 +21,7 @@ void nvme_show_lba_status_info(__u32 result);
 void nvme_show_relatives(const char *name);
 
 void nvme_show_id_iocs(struct nvme_id_iocs *iocs);
-void nvme_show_id_ctrl(struct nvme_id_ctrl *ctrl, unsigned int mode,
+void nvme_show_id_ctrl(struct nvme_id_ctrl *ctrl, enum nvme_print_flags flags,
        void (*vendor_show)(__u8 *vs, struct json_object *root));
 void nvme_show_id_ns(struct nvme_id_ns *ns, unsigned int nsid,
                unsigned int lba_index, bool cap_only, enum nvme_print_flags flags);