mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-31 13:00:49 +00:00
Fix #1519 - make opts structs in API calls const
This commit is contained in:
1 parent
5f78d34f4d
commit
db941e2627
10 files changed
+32
-30
No files matched your search
+1
-1
@@ -96,7 +96,7 @@ static struct mg_str mg_loadfile(struct mg_fs *fs, const char *path) {
|
||||
return mg_str_n(p, n);
|
||||
}
|
||||
|
||||
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_fs *fs = opts->fs == NULL ? &mg_fs_posix : opts->fs;
|
||||
struct mg_tls *tls = (struct mg_tls *) calloc(1, sizeof(*tls));
|
||||
int rc = 0;
|
||||
|
||||
Reference in new issue
Block a user