Skip to content
Snippets Groups Projects
Commit 5c9008e0 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Fix some "ISO C90 forbids mixed declarations and code" warnings

parent 37534880
No related branches found
No related tags found
No related merge requests found
......@@ -1418,10 +1418,10 @@ parse_http_url(const char *headers, char **url)
/* Check if the header is well formed (next sequence
* should be HTTP/1.X\r\n). Assumes we're supporting 1.0? */
char *e = (char *)eat_whitespace_no_nl(s);
{
unsigned minor_ver;
char ch;
char *e = (char *)eat_whitespace_no_nl(s);
if (2 != tor_sscanf(e, "HTTP/1.%u%c", &minor_ver, &ch)) {
return -1;
}
......
......@@ -2367,8 +2367,8 @@ test_dir_fmt_control_ns(void *arg)
static void
test_dir_http_handling(void *args)
{
(void)args;
char *url = NULL;
(void)args;
/* Parse http url tests: */
/* Good headers */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment