Mercurial > dovecot > core-2.2
changeset 21731:58f7612b0658
auth: oauth2 - make db_oauth2_template_export() static
It's not used outside db-oauth2.c
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Thu, 16 Mar 2017 00:32:01 +0200 |
parents | d6ed6978cbe7 |
children | 78b6f3032cc6 |
files | src/auth/db-oauth2.c src/auth/db-oauth2.h |
diffstat | 2 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/db-oauth2.c Thu Mar 16 00:25:19 2017 +0200 +++ b/src/auth/db-oauth2.c Thu Mar 16 00:32:01 2017 +0200 @@ -344,8 +344,9 @@ return table; } -int db_oauth2_template_export(struct db_oauth2_request *req, - const char **error_r ATTR_UNUSED) +static int +db_oauth2_template_export(struct db_oauth2_request *req, + const char **error_r ATTR_UNUSED) { /* var=$ expands into var=${oauth2:var} */ const struct var_expand_func_table funcs_table[] = {
--- a/src/auth/db-oauth2.h Thu Mar 16 00:25:19 2017 +0200 +++ b/src/auth/db-oauth2.h Thu Mar 16 00:32:01 2017 +0200 @@ -44,6 +44,4 @@ CALLBACK_TYPECHECK(callback, void(*)(struct db_oauth2*, bool, struct db_oauth2_request *req, const char*, typeof(context))), \ request, (db_oauth2_lookup_callback_t*)callback, (void*)context) -int db_oauth2_template_export(struct db_oauth2_request *req, const char **error_r); - #endif