diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-01-02 13:59:18 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-01-02 14:00:05 +0100 |
commit | b016f111233e840da8879b1fe933b72aa8ac625f (patch) | |
tree | 84b19b6814ddc5c251a2802fe33b7dc0a180dc37 /uhttpd.h | |
parent | a6aca5fc1be4409c47f88f730814b41dc9c95475 (diff) |
constify, fix types
Diffstat (limited to 'uhttpd.h')
-rw-r--r-- | uhttpd.h | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -59,9 +59,9 @@ struct config { struct auth_realm { struct list_head list; - char *path; - char *user; - char *pass; + const char *path; + const char *user; + const char *pass; }; enum http_method { @@ -80,7 +80,7 @@ struct http_request { enum http_method method; enum http_version version; int redirect_status; - char *url; + const char *url; const struct auth_realm *realm; }; @@ -94,8 +94,8 @@ enum client_state { struct interpreter { struct list_head list; - char *path; - char *ext; + const char *path; + const char *ext; }; struct path_info { @@ -104,9 +104,9 @@ struct path_info { const char *name; const char *info; const char *query; - int redirected; + bool redirected; struct stat stat; - struct interpreter *ip; + const struct interpreter *ip; }; struct env_var { |