diff options
author | Lukas Fleischer | 2016-09-29 08:38:45 +0200 |
---|---|---|
committer | Jason A. Donenfeld | 2016-10-01 21:19:38 +0200 |
commit | 927b0ae30c84fbfce877e35415681dce6eba0229 (patch) | |
tree | be0b56a1b2ecf4bcc767bd927c779c62e38fed2b /html.h | |
parent | e18a85b6a298feef88da8085ef16fd20ce971071 (diff) | |
download | cgit-927b0ae30c84fbfce877e35415681dce6eba0229.tar.gz cgit-927b0ae30c84fbfce877e35415681dce6eba0229.tar.bz2 cgit-927b0ae30c84fbfce877e35415681dce6eba0229.zip |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -32,6 +32,6 @@ extern void html_link_close(void); | |||
32 | extern void html_fileperm(unsigned short mode); | 32 | extern void html_fileperm(unsigned short mode); |
33 | extern int html_include(const char *filename); | 33 | extern int html_include(const char *filename); |
34 | 34 | ||
35 | extern int http_parse_querystring(const char *txt, void (*fn)(const char *name, const char *value)); | 35 | extern void http_parse_querystring(const char *txt, void (*fn)(const char *name, const char *value)); |
36 | 36 | ||
37 | #endif /* HTML_H */ | 37 | #endif /* HTML_H */ |