aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--example/hello.c1
-rw-r--r--util/net.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/example/hello.c b/example/hello.c
index 41ef753..a7b433e 100644
--- a/example/hello.c
+++ b/example/hello.c
@@ -14,6 +14,7 @@ char *app_id;
int hello(cJSON *data)
{
+ (void)(data);
print("hello: hello from userland!");
return 0;
diff --git a/util/net.c b/util/net.c
index e7c6288..ea0aeb3 100644
--- a/util/net.c
+++ b/util/net.c
@@ -416,7 +416,7 @@ int net_subsystem(void)
goto sockpoll_continue;
case(CURLWS_CLOSE):;
short code = (uint8_t)inbuf[1] | (uint8_t)inbuf[0] << 8;
- char *msg = (char*)((void*)inbuf + 2);
+ char *msg = (char*)((long long)inbuf + 2);
inbuf[rlen] = '\0';
ws_handle_close(code, msg);
goto sockpoll_continue;