From 927b0ae30c84fbfce877e35415681dce6eba0229 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 29 Sep 2016 08:38:45 +0200 Subject: Simplify http_parse_querystring() Instead of reimplementing URL parameter parsing from scratch, use url_decode_parameter_name() and url_decode_parameter_value() which are already provided by Git. Also, change the return type of http_parse_querystring() to void since its only caller already ignores the return value. Signed-off-by: Lukas Fleischer --- html.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'html.h') diff --git a/html.h b/html.h index c72e845..1b24e55 100644 --- a/html.h +++ b/html.h @@ -32,6 +32,6 @@ extern void html_link_close(void); extern void html_fileperm(unsigned short mode); extern int html_include(const char *filename); -extern int http_parse_querystring(const char *txt, void (*fn)(const char *name, const char *value)); +extern void http_parse_querystring(const char *txt, void (*fn)(const char *name, const char *value)); #endif /* HTML_H */ -- cgit v1.2.3