summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2019-11-10 11:58:38 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2019-11-10 11:58:38 +0000
commit58094ffaa50ea3fc7e3c21bd8e41eb04133d09d3 (patch)
tree2c44133a109023e45232ab314edebaac8dea0b6c
parent885897f610b9b3650d061b17ef58d6493287488b (diff)
downloadnetsurf-58094ffaa50ea3fc7e3c21bd8e41eb04133d09d3.tar.gz
netsurf-58094ffaa50ea3fc7e3c21bd8e41eb04133d09d3.tar.bz2
Data fetcher: Move fetch_data_send_callback towards top of file.
-rw-r--r--content/fetchers/data.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/content/fetchers/data.c b/content/fetchers/data.c
index 8c04bcfea..720a66311 100644
--- a/content/fetchers/data.c
+++ b/content/fetchers/data.c
@@ -74,6 +74,14 @@ static bool fetch_data_can_fetch(const nsurl *url)
return true;
}
+static void fetch_data_send_callback(const fetch_msg *msg,
+ struct fetch_data_context *c)
+{
+ c->locked = true;
+ fetch_send_callback(msg, c->parent_fetch);
+ c->locked = false;
+}
+
static void *fetch_data_setup(struct fetch *parent_fetch, nsurl *url,
bool only_2xx, bool downgrade_tls, const char *post_urlenc,
const struct fetch_multipart_data *post_multipart,
@@ -119,14 +127,6 @@ static void fetch_data_abort(void *ctx)
c->aborted = true;
}
-static void fetch_data_send_callback(const fetch_msg *msg,
- struct fetch_data_context *c)
-{
- c->locked = true;
- fetch_send_callback(msg, c->parent_fetch);
- c->locked = false;
-}
-
static bool fetch_data_process(struct fetch_data_context *c)
{
nserror res;