*str = 0;
}
-static void wms_decode_address(char *str, char *name, unsigned char *data, int len)
+static void wms_decode_address(char *name, unsigned char *data, int len)
{
- str = blobmsg_alloc_string_buffer(&status, name, len * 2 + 2);
+ char *str = blobmsg_alloc_string_buffer(&status, name, len * 2 + 2);
pdu_decode_address(str, data, len);
blobmsg_add_string_buffer(&status);
}
return;
if (cur_len) {
- wms_decode_address(str, "smsc", data, cur_len - 1);
+ wms_decode_address("smsc", data, cur_len - 1);
data += cur_len;
}
if (cur_len) {
cur_len = (cur_len + 1) / 2;
- wms_decode_address(str, sent ? "receiver" : "sender", data, cur_len);
+ wms_decode_address(sent ? "receiver" : "sender", data, cur_len);
data += cur_len + 1;
}