aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.h
diff options
context:
space:
mode:
authorGravatar Lukas Fleischer <cgit@cryptocrack.de>2013-04-02 00:11:14 (JST)
committerGravatar Jason A. Donenfeld <Jason@zx2c4.com>2013-04-08 22:43:17 (JST)
commit3a8432437934a0a95f2618b534b1f5b3494d6b18 (patch)
tree6e7dd26d45c4f10c60dc762a11071f1787a79443 /cgit.h
parent996f86e664ab6d00a9304a42374e9c691b78ca6b (diff)
downloadcgit-3a8432437934a0a95f2618b534b1f5b3494d6b18.zip
cgit-3a8432437934a0a95f2618b534b1f5b3494d6b18.tar.gz
Maŕk cgit_environment members const
These reflect the values of environment variables and should never be changed. Add another xstrdup() when we assign environment variables to strings that are potentially non-constant. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
Diffstat (limited to 'cgit.h')
-rw-r--r--cgit.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/cgit.h b/cgit.h
index ed5cf14..081f669 100644
--- a/cgit.h
+++ b/cgit.h
@@ -255,16 +255,16 @@ struct cgit_page {
255}; 255};
256 256
257struct cgit_environment { 257struct cgit_environment {
258 char *cgit_config; 258 const char *cgit_config;
259 char *http_host; 259 const char *http_host;
260 char *https; 260 const char *https;
261 char *no_http; 261 const char *no_http;
262 char *path_info; 262 const char *path_info;
263 char *query_string; 263 const char *query_string;
264 char *request_method; 264 const char *request_method;
265 char *script_name; 265 const char *script_name;
266 char *server_name; 266 const char *server_name;
267 char *server_port; 267 const char *server_port;
268}; 268};
269 269
270struct cgit_context { 270struct cgit_context {