From: Stephan Bosch Date: Fri, 5 Jun 2020 19:13:39 +0000 (+0200) Subject: lib-oauth2: Rename oauth2_request_free_internal() to oauth2_request_free(). X-Git-Tag: 2.3.14.rc1~243 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d33c15dcfe5529c3f81eb7a3587137a98c367c3b;p=thirdparty%2Fdovecot%2Fcore.git lib-oauth2: Rename oauth2_request_free_internal() to oauth2_request_free(). And make it static. --- diff --git a/src/lib-oauth2/oauth2-private.h b/src/lib-oauth2/oauth2-private.h index ef0f48cc71..7da5006ce6 100644 --- a/src/lib-oauth2/oauth2-private.h +++ b/src/lib-oauth2/oauth2-private.h @@ -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); diff --git a/src/lib-oauth2/oauth2-request.c b/src/lib-oauth2/oauth2-request.c index 082652d88c..98114f666f 100644 --- a/src/lib-oauth2/oauth2-request.c +++ b/src/lib-oauth2/oauth2-request.c @@ -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); }