diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2017-06-24 18:09:53 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2017-07-15 22:42:15 -0400 |
commit | f3437fb2f245d9031d1a8dcbe9782ef0c0c9fc48 (patch) | |
tree | e54a4f0a5ed6c60623a0ece45aa65dc48f7ff4e7 /src/keyvalue.h | |
parent | 91d14acfc349b3d6032da840bd985617f65fdc49 (diff) | |
download | lighttpd-git-f3437fb2f245d9031d1a8dcbe9782ef0c0c9fc48.tar.gz |
[core] add const to reduce .data segment size
Diffstat (limited to 'src/keyvalue.h')
-rw-r--r-- | src/keyvalue.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/keyvalue.h b/src/keyvalue.h index 7a559b6f..9fc2bc7f 100644 --- a/src/keyvalue.h +++ b/src/keyvalue.h @@ -65,7 +65,7 @@ typedef enum { HTTP_VERSION_UNSET = -1, HTTP_VERSION_1_0, HTTP_VERSION_1_1 } htt typedef struct { int key; - char *value; + const char *value; } keyvalue; typedef struct { @@ -90,8 +90,8 @@ const char *get_http_status_body_name(int i); int get_http_version_key(const char *s); http_method_t get_http_method_key(const char *s); -const char *keyvalue_get_value(keyvalue *kv, int k); -int keyvalue_get_key(keyvalue *kv, const char *s); +const char *keyvalue_get_value(const keyvalue *kv, int k); +int keyvalue_get_key(const keyvalue *kv, const char *s); pcre_keyvalue_buffer *pcre_keyvalue_buffer_init(void); int pcre_keyvalue_buffer_append(struct server *srv, pcre_keyvalue_buffer *kvb, const char *key, const char *value); |