]> www.infradead.org Git - users/hch/nvme-cli.git/commitdiff
nvme-cli: make command description const
authorMinwoo Im <minwoo.im.dev@gmail.com>
Sat, 28 Oct 2017 18:26:33 +0000 (03:26 +0900)
committerKeith Busch <keith.busch@intel.com>
Mon, 30 Oct 2017 19:35:45 +0000 (13:35 -0600)
Make desc in sanitize_log() const.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
nvme.c

diff --git a/nvme.c b/nvme.c
index 9ac6a3c087510cdecf9881e8b9a8bc809b57ec6e..ed1c61f0fd7e7ffe77baa969b57ca3f1c4ee8da5 100644 (file)
--- a/nvme.c
+++ b/nvme.c
@@ -488,7 +488,7 @@ static const char * sanitize_mon_status_to_string(__u16 status)
 
 static int sanitize_log(int argc, char **argv, struct command *command, struct plugin *plugin)
 {
-       char *desc = "Retrieve sanitize log and show it.";
+       const char *desc = "Retrieve sanitize log and show it.";
        int fd;
        int ret;
        __u8 output[NVME_SANITIZE_LOG_DATA_LEN] = {0};