summaryrefslogtreecommitdiff
path: root/lua.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-01-06 00:13:13 +0100
committerFelix Fietkau <nbd@openwrt.org>2013-01-06 00:13:13 +0100
commit9d49fe82fd7f57b340004f6fc62dd4509e528931 (patch)
tree3d1d38e3973cb87981098b368bf813b1286d1636 /lua.c
parent852a5a4f11f0b4de924a49403ab864cc0584a0ad (diff)
de-constify the url parameter for the handler, it becomes invalid after the request anyway
Diffstat (limited to 'lua.c')
-rw-r--r--lua.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua.c b/lua.c
index 0b06a33..7cc05d9 100644
--- a/lua.c
+++ b/lua.c
@@ -200,7 +200,7 @@ error:
return NULL;
}
-static void lua_main(struct client *cl, struct path_info *pi, const char *url)
+static void lua_main(struct client *cl, struct path_info *pi, char *url)
{
struct blob_attr *cur;
const char *error;
@@ -261,7 +261,7 @@ static void lua_main(struct client *cl, struct path_info *pi, const char *url)
exit(0);
}
-static void lua_handle_request(struct client *cl, const char *url, struct path_info *pi)
+static void lua_handle_request(struct client *cl, char *url, struct path_info *pi)
{
static struct path_info _pi;