Change mg_ws_send: const char * -> const void *

This commit is contained in:
cpq 2022-08-11 12:11:12 +01:00
parent 44a0fa0986
commit ef9f7d4c16
4 changed files with 4 additions and 4 deletions

View File

@ -5819,7 +5819,7 @@ static void mg_ws_mask(struct mg_connection *c, size_t len) {
}
}
size_t mg_ws_send(struct mg_connection *c, const char *buf, size_t len,
size_t mg_ws_send(struct mg_connection *c, const void *buf, size_t len,
int op) {
uint8_t header[14];
size_t header_len = mkhdr(len, op, c->is_client, header);

View File

@ -1259,7 +1259,7 @@ struct mg_connection *mg_ws_connect(struct mg_mgr *, const char *url,
const char *fmt, ...);
void mg_ws_upgrade(struct mg_connection *, struct mg_http_message *,
const char *fmt, ...);
size_t mg_ws_send(struct mg_connection *, const char *buf, size_t len, int op);
size_t mg_ws_send(struct mg_connection *, const void *buf, size_t len, int op);
size_t mg_ws_wrap(struct mg_connection *, size_t len, int op);
size_t mg_ws_printf(struct mg_connection *c, int op, const char *fmt, ...);
size_t mg_ws_vprintf(struct mg_connection *c, int op, const char *fmt, va_list);

View File

@ -129,7 +129,7 @@ static void mg_ws_mask(struct mg_connection *c, size_t len) {
}
}
size_t mg_ws_send(struct mg_connection *c, const char *buf, size_t len,
size_t mg_ws_send(struct mg_connection *c, const void *buf, size_t len,
int op) {
uint8_t header[14];
size_t header_len = mkhdr(len, op, c->is_client, header);

View File

@ -19,7 +19,7 @@ struct mg_connection *mg_ws_connect(struct mg_mgr *, const char *url,
const char *fmt, ...);
void mg_ws_upgrade(struct mg_connection *, struct mg_http_message *,
const char *fmt, ...);
size_t mg_ws_send(struct mg_connection *, const char *buf, size_t len, int op);
size_t mg_ws_send(struct mg_connection *, const void *buf, size_t len, int op);
size_t mg_ws_wrap(struct mg_connection *, size_t len, int op);
size_t mg_ws_printf(struct mg_connection *c, int op, const char *fmt, ...);
size_t mg_ws_vprintf(struct mg_connection *c, int op, const char *fmt, va_list);