From 8b491d75b5eb06b72618c3b9c6241ac43001035f Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Sat, 18 Aug 2012 16:47:25 +0100 Subject: [PATCH] added const in mg_get_request_info() --- mongoose.c | 3 ++- mongoose.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mongoose.c b/mongoose.c index ae6613ca..f69f4894 100644 --- a/mongoose.c +++ b/mongoose.c @@ -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; } diff --git a/mongoose.h b/mongoose.h index c5e6e4ba..3b0c67a6 100644 --- a/mongoose.h +++ b/mongoose.h @@ -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.