mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-15 10:29:47 +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
@@ -82,7 +82,7 @@ static void cb(struct mg_connection *c, int ev, void *ev_data, void *fn_data) {
|
||||
}
|
||||
} else if (ev == MG_EV_POLL && c->fn_data != NULL) {
|
||||
// On each poll iteration, try to receive response data
|
||||
int sock = (int) c->fn_data;
|
||||
int sock = (int) (long) c->fn_data;
|
||||
struct response response = {NULL, 0};
|
||||
if (recv(sock, (void *) &response, sizeof(response), 0) ==
|
||||
sizeof(response)) {
|
||||
|
||||
Reference in new issue
Block a user