mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-20 11:19:56 +00:00
Squash warnings under linux
This commit is contained in:
1 parent
0c142f20d7
commit
fa8f62fb5d
3 files changed
+3
-3
No files matched your search
@@ -13,7 +13,7 @@ static const char *s_url = "ws://localhost:8000/websocket";
|
||||
static void fn(struct mg_connection *c, int ev, void *ev_data, void *fn_data) {
|
||||
if (ev == MG_EV_ERROR) {
|
||||
// On error, log error message
|
||||
LOG(LL_ERROR, ("%p %s", c->fd, ev_data));
|
||||
LOG(LL_ERROR, ("%p %s", c->fd, (char *) ev_data));
|
||||
} else if (ev == MG_EV_WS_OPEN) {
|
||||
// When websocket handshake is successful, send message
|
||||
mg_ws_send(c, "hello", 5, WEBSOCKET_OP_TEXT);
|
||||
|
||||
Reference in new issue
Block a user