summaryrefslogtreecommitdiff
path: root/examples/server.c
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2019-12-11 11:15:02 +0100
committerPetr Štetiar <ynezz@true.cz>2019-12-16 23:39:16 +0100
commit058f4e9526edbba5c6330d7024ef1dac78c3ac2b (patch)
treee2f8b34f4070bf4b94d03061ccf93e922240a54e /examples/server.c
parentd2e026a33df81f116ceb2567056346f38d139706 (diff)
downloadubus-058f4e9526edbba5c6330d7024ef1dac78c3ac2b.tar.gz
libubus: fix incompatible pointer types assigment
Fixes following error reported by clang-9 analyzer: libubus.c:286:19: error: incompatible pointer types assigning to 'struct blob_attr *' from 'char *' [-Werror,-Wincompatible-pointer-types] ctx->msgbuf.data = (char *) calloc(UBUS_MSG_CHUNK_SIZE, sizeof(char)); Result of 'calloc' is converted to a pointer of type 'struct blob_attr', which is incompatible with sizeof operand type 'char'. Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'examples/server.c')
0 files changed, 0 insertions, 0 deletions