diff options
author | turret <turret@duck.com> | 2025-09-28 22:52:34 -0500 |
---|---|---|
committer | turret <turret@duck.com> | 2025-09-28 22:52:34 -0500 |
commit | 4eb442a9c45c6ad431bd9f87d01bb5cc6c99ac0f (patch) | |
tree | 4682a9db7793c32181cbb8bfe24a71b515b3c0e0 | |
parent | 8e534cc1846177f0eb88e48e07d544ea06a0f0ad (diff) | |
download | discord-bot-skeleton-4eb442a9c45c6ad431bd9f87d01bb5cc6c99ac0f.tar.gz discord-bot-skeleton-4eb442a9c45c6ad431bd9f87d01bb5cc6c99ac0f.tar.bz2 discord-bot-skeleton-4eb442a9c45c6ad431bd9f87d01bb5cc6c99ac0f.zip |
misc: warning fixes
-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; |