]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-oauth2: Rename oauth2_request_free_internal() to oauth2_request_free().
authorStephan Bosch <stephan.bosch@open-xchange.com>
Fri, 5 Jun 2020 19:13:39 +0000 (21:13 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 7 Dec 2020 08:59:28 +0000 (08:59 +0000)
And make it static.

src/lib-oauth2/oauth2-private.h
src/lib-oauth2/oauth2-request.c

index ef0f48cc71ec45501afc3b428dfc0e1a51c4a1df..7da5006ce620f11c384d224b54a9634e78c60958 100644 (file)
@@ -33,8 +33,6 @@ struct oauth2_request {
 void oauth2_request_set_headers(struct oauth2_request *req,
                                const struct oauth2_request_input *input);
 
-void oauth2_request_free_internal(struct oauth2_request *req);
-
 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 082652d88c0ecfaafc56f3dbe0020d2eff2060fc..98114f666f4e91077403a37fc4d371c2efa07669 100644 (file)
@@ -10,7 +10,7 @@
 #include "oauth2.h"
 #include "oauth2-private.h"
 
-void oauth2_request_free_internal(struct oauth2_request *req)
+static void oauth2_request_free(struct oauth2_request *req)
 {
        timeout_remove(&req->to_delayed_error);
        pool_unref(&req->pool);
@@ -24,7 +24,7 @@ oauth2_request_callback(struct oauth2_request *req,
        oauth2_request_callback_t *callback = req->req_callback;
        req->req_callback = NULL;
        callback(res, req->req_context);
-       oauth2_request_free_internal(req);
+       oauth2_request_free(req);
 }
 
 static bool
@@ -358,5 +358,5 @@ void oauth2_request_abort(struct oauth2_request **_req)
        *_req = NULL;
 
        http_client_request_abort(&req->req);
-       oauth2_request_free_internal(req);
+       oauth2_request_free(req);
 }