mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-19 11:09:42 +00:00
added const in mg_get_request_info()
This commit is contained in:
1 parent
d70c18d692
commit
8b491d75b5
2 files changed
+3
-2
No files matched your search
+2
-1
@@ -592,7 +592,8 @@ const char *mg_version(void) {
|
||||
return MONGOOSE_VERSION;
|
||||
}
|
||||
|
||||
const struct mg_request_info *mg_get_request_info(struct mg_connection *conn) {
|
||||
const struct mg_request_info *
|
||||
mg_get_request_info(const struct mg_connection *conn) {
|
||||
return &conn->request_info;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -153,7 +153,7 @@ int mg_modify_passwords_file(const char *passwords_file_name,
|
||||
|
||||
// Return mg_request_info structure associated with the request.
|
||||
// Always succeeds.
|
||||
const struct mg_request_info *mg_get_request_info(struct mg_connection *);
|
||||
const struct mg_request_info *mg_get_request_info(const struct mg_connection *);
|
||||
|
||||
|
||||
// Send data to the client.
|
||||
|
||||
Reference in new issue
Block a user