diff options
-rw-r--r-- | example/hello.c | 1 | ||||
-rw-r--r-- | util/net.c | 2 |
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; @@ -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; |