Fix #1519 - make opts structs in API calls const

This commit is contained in:
Sergey Lyubka committed 2022-04-12 10:04:55 +01:00
1 parent 5f78d34f4d
commit db941e2627
10 files changed
+32 -30

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ static int mg_tls_err(struct mg_tls *tls, int res) {
return err;
}
void mg_tls_init(struct mg_connection *c, struct mg_tls_opts *opts) {
void mg_tls_init(struct mg_connection *c, const struct mg_tls_opts *opts) {
struct mg_tls *tls = (struct mg_tls *) calloc(1, sizeof(*tls));
const char *id = "mongoose";
static unsigned char s_initialised = 0;