From 58094ffaa50ea3fc7e3c21bd8e41eb04133d09d3 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 10 Nov 2019 11:58:38 +0000 Subject: Data fetcher: Move fetch_data_send_callback towards top of file. --- content/fetchers/data.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'content/fetchers/data.c') 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; -- cgit v1.2.3