Skip to contentSkip to conversation

nvme-cli: make command description const

PATCH New Minwoo Im 2 participants 2 messages Oct 28, 2017 – Oct 30, 2017 NVMe

lore
Share & tools
lore

Minwoo Im

author
#0 lore raw

PATCH 1/1 nvme-cli: make command description const

Make desc in sanitize_log() const.

Signed-off-by Minwoo Im <minwoo.im.dev at gmail.com>
---
 nvme.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
nvme.c +1 -1
index 9ac6a3c..ed1c61f 100644
@@ -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};
Signature · 1 line
2.7.4
Applied
#1 lore raw

PATCH 1/1 nvme-cli: make command description const

Quoted 3 lines · Minwoo Im

Make desc in sanitize_log() const.

Signed-off-by Minwoo Im <minwoo.im.dev at gmail.com>

Applied, thanks.