diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-01-06 00:13:13 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-01-06 00:13:13 +0100 |
commit | 9d49fe82fd7f57b340004f6fc62dd4509e528931 (patch) | |
tree | 3d1d38e3973cb87981098b368bf813b1286d1636 /cgi.c | |
parent | 852a5a4f11f0b4de924a49403ab864cc0584a0ad (diff) |
de-constify the url parameter for the handler, it becomes invalid after the request anyway
Diffstat (limited to 'cgi.c')
-rw-r--r-- | cgi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -36,7 +36,7 @@ void uh_interpreter_add(const char *ext, const char *path) list_add_tail(&in->list, &interpreters); } -static void cgi_main(struct client *cl, struct path_info *pi, const char *url) +static void cgi_main(struct client *cl, struct path_info *pi, char *url) { const struct interpreter *ip = pi->ip; struct env_var *var; @@ -63,7 +63,7 @@ static void cgi_main(struct client *cl, struct path_info *pi, const char *url) " %s: %s\n", ip ? ip->path : pi->phys, strerror(errno)); } -static void cgi_handle_request(struct client *cl, const char *url, struct path_info *pi) +static void cgi_handle_request(struct client *cl, char *url, struct path_info *pi) { unsigned int mode = S_IFREG | S_IXOTH; |