mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-31 13:00:49 +00:00
Reformat mongoose
PUBLISHED_FROM=5202fa46a6a834bde35168ba566d3dce7c48f453
This commit is contained in:
1 parent
8313896a85
commit
9b24fdfd1d
2 files changed
+10
-10
No files matched your search
+4
-4
@@ -3266,9 +3266,9 @@ extern const struct mg_iface_vtable mg_socks_iface_vtable;
|
||||
extern const struct mg_iface_vtable mg_default_iface_vtable;
|
||||
|
||||
const struct mg_iface_vtable *mg_ifaces[] = {
|
||||
&mg_default_iface_vtable,
|
||||
&mg_default_iface_vtable,
|
||||
#if MG_ENABLE_TUN
|
||||
&mg_tun_iface_vtable,
|
||||
&mg_tun_iface_vtable,
|
||||
#endif
|
||||
};
|
||||
|
||||
@@ -12833,7 +12833,7 @@ static void mg_socks5_handshake(struct mg_connection *c) {
|
||||
}
|
||||
mbuf_remove(r, 2 + r->buf[1]);
|
||||
mg_send(c, reply, sizeof(reply));
|
||||
c->flags |= MG_F_USER_1; /* Mark handshake done */
|
||||
c->flags |= MG_F_USER_1; /* Mark handshake done */
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12863,7 +12863,7 @@ static void serv_ev_handler(struct mg_connection *c, int ev, void *ev_data) {
|
||||
} else if (ev == MG_EV_RECV) {
|
||||
relay_data(c);
|
||||
} else if (ev == MG_EV_CONNECT) {
|
||||
int res = * (int *) ev_data;
|
||||
int res = *(int *) ev_data;
|
||||
if (res != 0) LOG(LL_ERROR, ("connect error: %d", res));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user