example/webclient : Fix compilation error without TLS option
authorJin-Seong Kim <jseong82.kim@samsung.com>
Wed, 21 Jun 2017 07:48:57 +0000 (16:48 +0900)
committerEunBong Song <eunb.song@samsung.com>
Tue, 11 Jul 2017 11:13:24 +0000 (20:13 +0900)
commit6741fd0ea681d92a28e6c705e37d65519c8a278c
tree053fabe5b5dccf61151b89d810fe126e49f2fbc7
parent08564efa6b78f628f472e874c7d3decbadae07dc
example/webclient : Fix compilation error without TLS option

This commit is to fix compilation error on webclient example without TLS

 1. add (char *) cast in front of malloc
 webclient_main.c: In function 'webclient_init_request':
 webclient_main.c:245:21:
 error: assignment makes pointer from integer without a cast [-Werror]
     request->entity = malloc(t);

 2. add stdlib.h
 webclient_main.c:237: undefined reference to `atoi'
 webclient_main.c:239: undefined reference to `atoi'
 webclient_main.c:243: undefined reference to `atoi'

Change-Id: I85859de77349dcd922237b3737f7039873913e20
Signed-off-by: Jin-Seong Kim <jseong82.kim@samsung.com>
apps/examples/webclient/webclient_main.c