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 /uhttpd.h | |
parent | 852a5a4f11f0b4de924a49403ab864cc0584a0ad (diff) |
de-constify the url parameter for the handler, it becomes invalid after the request anyway
Diffstat (limited to 'uhttpd.h')
-rw-r--r-- | uhttpd.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -148,7 +148,7 @@ struct dispatch_handler { bool (*check_url)(const char *url); bool (*check_path)(struct path_info *pi, const char *url); - void (*handle_request)(struct client *cl, const char *url, struct path_info *pi); + void (*handle_request)(struct client *cl, char *url, struct path_info *pi); }; struct dispatch { @@ -237,8 +237,8 @@ void uh_relay_close(struct relay *r, int ret); void uh_relay_free(struct relay *r); struct env_var *uh_get_process_vars(struct client *cl, struct path_info *pi); -bool uh_create_process(struct client *cl, struct path_info *pi, const char *url, - void (*cb)(struct client *cl, struct path_info *pi, const char *url)); +bool uh_create_process(struct client *cl, struct path_info *pi, char *url, + void (*cb)(struct client *cl, struct path_info *pi, char *url)); int uh_plugin_init(const char *name); |