Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.zx2c4.com/cgit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/html.h
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@lfos.de>2016-09-29 09:38:45 +0300
committerJason A. Donenfeld <Jason@zx2c4.com>2016-10-01 22:19:38 +0300
commit927b0ae30c84fbfce877e35415681dce6eba0229 (patch)
treebe0b56a1b2ecf4bcc767bd927c779c62e38fed2b /html.h
parente18a85b6a298feef88da8085ef16fd20ce971071 (diff)
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 <lfleischer@lfos.de>
Diffstat (limited to 'html.h')
-rw-r--r--html.h2
1 files changed, 1 insertions, 1 deletions
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 */