aboutsummaryrefslogtreecommitdiff
path: root/src/examples/websocket_threaded_example.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/websocket_threaded_example.c')
-rw-r--r--src/examples/websocket_threaded_example.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/websocket_threaded_example.c b/src/examples/websocket_threaded_example.c
index e2a2c9c1..1a2e2877 100644
--- a/src/examples/websocket_threaded_example.c
+++ b/src/examples/websocket_threaded_example.c
@@ -539,7 +539,7 @@ send_all (MHD_socket sock, const unsigned char *buf, size_t len)
539 539
540 for (off = 0; off < len; off += ret) 540 for (off = 0; off < len; off += ret)
541 { 541 {
542 ret = send (sock, (const void*) &buf[off], len - off, 0); 542 ret = send (sock, (const void *) &buf[off], len - off, 0);
543 if (0 > ret) 543 if (0 > ret)
544 { 544 {
545 if (EAGAIN == errno) 545 if (EAGAIN == errno)
@@ -705,7 +705,7 @@ run_usock (void *cls)
705 make_blocking (ws->sock); 705 make_blocking (ws->sock);
706 while (1) 706 while (1)
707 { 707 {
708 got = recv (ws->sock, (void*) buf, sizeof (buf), 0); 708 got = recv (ws->sock, (void *) buf, sizeof (buf), 0);
709 if (0 >= got) 709 if (0 >= got)
710 { 710 {
711 break; 711 break;