projects
/
project
/
uqmi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26af7a3
)
silence a compiler warning about adding an int to a string
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 2 Oct 2014 09:46:04 +0000
(11:46 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 2 Oct 2014 09:46:09 +0000
(11:46 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
commands-wms.c
patch
|
blob
|
history
diff --git
a/commands-wms.c
b/commands-wms.c
index e3744c1c5cdf8f7966b4023f58fa656ae49d0709..01e6867ea7e98de400ab840c551e38355451fc30 100644
(file)
--- 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);
}