mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-30 12:50:58 +00:00
Fix #2612 - struct mg_str::ptr -> buf
This commit is contained in:
1 parent
e93d18d200
commit
e0e599ffa1
61 files changed
+684
-686
No files matched your search
@@ -22,7 +22,7 @@ static void fn(struct mg_connection *c, int ev, void *ev_data) {
|
||||
} else if (ev == MG_EV_WS_MSG) {
|
||||
// When we get echo response, print it
|
||||
struct mg_ws_message *wm = (struct mg_ws_message *) ev_data;
|
||||
printf("GOT ECHO REPLY: [%.*s]\n", (int) wm->data.len, wm->data.ptr);
|
||||
printf("GOT ECHO REPLY: [%.*s]\n", (int) wm->data.len, wm->data.buf);
|
||||
}
|
||||
|
||||
if (ev == MG_EV_ERROR || ev == MG_EV_CLOSE || ev == MG_EV_WS_MSG) {
|
||||
|
||||
Reference in new issue
Block a user