aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-04-16 14:56:42 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-04-17 15:24:38 +0300
commit1907cc2b1b72a0c5e79ed9f3314e686404cab5ae (patch)
tree8c78894cf98a86e851e4b262d58c9312a3adb645
parent36cf2f2d2a40f4fea9fb6a910b7ab48a5dae9ce6 (diff)
downloadlibmicrohttpd-1907cc2b1b72a0c5e79ed9f3314e686404cab5ae.tar.gz
libmicrohttpd-1907cc2b1b72a0c5e79ed9f3314e686404cab5ae.zip
MHD_Connection: added 'const' qualifiers to some unmodifiable members
-rw-r--r--src/microhttpd/internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h
index e3d9a433..50c1a1ec 100644
--- a/src/microhttpd/internal.h
+++ b/src/microhttpd/internal.h
@@ -999,7 +999,7 @@ struct MHD_Connection
999 /** 999 /**
1000 * Request method. Should be GET/POST/etc. Allocated in pool. 1000 * Request method. Should be GET/POST/etc. Allocated in pool.
1001 */ 1001 */
1002 char *method; 1002 const char *method;
1003 1003
1004 /** 1004 /**
1005 * The request method as enum. 1005 * The request method as enum.
@@ -1016,7 +1016,7 @@ struct MHD_Connection
1016 * HTTP version string (i.e. http/1.1). Allocated 1016 * HTTP version string (i.e. http/1.1). Allocated
1017 * in pool. 1017 * in pool.
1018 */ 1018 */
1019 char *version; 1019 const char *version;
1020 1020
1021 /** 1021 /**
1022 * HTTP protocol version as enum. 1022 * HTTP protocol version as enum.