]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-oauth2: Make oauth2_request_set_headers() static.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Fri, 5 Jun 2020 19:16:58 +0000 (21:16 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 7 Dec 2020 08:59:28 +0000 (08:59 +0000)
src/lib-oauth2/oauth2-private.h
src/lib-oauth2/oauth2-request.c

index 7da5006ce620f11c384d224b54a9634e78c60958..038f9e14a3ca3ec485fab6517e98fbf81c7867ed 100644 (file)
@@ -30,9 +30,6 @@ struct oauth2_request {
        unsigned int response_status;
 };
 
-void oauth2_request_set_headers(struct oauth2_request *req,
-                               const struct oauth2_request_input *input);
-
 void oauth2_request_parse_json(struct oauth2_request *req);
 int oauth2_json_tree_build(const buffer_t *json, struct json_tree **tree_r,
                           const char **error_r);
index 98114f666f4e91077403a37fc4d371c2efa07669..032eff1630f2f894ef819bf334943e7e0245f96d 100644 (file)
@@ -159,8 +159,9 @@ oauth2_request_response(const struct http_response *response,
        oauth2_request_parse_json(req);
 }
 
-void oauth2_request_set_headers(struct oauth2_request *req,
-                               const struct oauth2_request_input *input)
+static void
+oauth2_request_set_headers(struct oauth2_request *req,
+                          const struct oauth2_request_input *input)
 {
        if (!req->set->send_auth_headers)
                return;