From 11102e7e2015063728b126b9e86266a940ed596b Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 2 Oct 2014 11:46:04 +0200 Subject: [PATCH] silence a compiler warning about adding an int to a string Signed-off-by: Felix Fietkau --- commands-wms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands-wms.c b/commands-wms.c index e3744c1..01e6867 100644 --- a/commands-wms.c +++ b/commands-wms.c @@ -389,7 +389,7 @@ static void cmd_wms_get_raw_message_cb(struct qmi_dev *qmi, struct qmi_request * data = (unsigned char *) res.data.raw_message_data.raw_data; str = blobmsg_alloc_string_buffer(&status, NULL, res.data.raw_message_data.raw_data_n * 3); for (i = 0; i < res.data.raw_message_data.raw_data_n; i++) { - str += sprintf(str, " %02x" + (i ? 0 : 1), data[i]); + str += sprintf(str, &" %02x"[i ? 0 : 1], data[i]); } blobmsg_add_string_buffer(&status); } -- 2.30.2