From 3d365d35f808bfe6096738d56d75cdb23bddd585 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 16 Mar 2017 00:32:01 +0200 Subject: [PATCH] auth: oauth2 - make db_oauth2_template_export() static It's not used outside db-oauth2.c --- src/auth/db-oauth2.c | 5 +++-- src/auth/db-oauth2.h | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/auth/db-oauth2.c b/src/auth/db-oauth2.c index 5c30700efc..9f1e6bb8f8 100644 --- a/src/auth/db-oauth2.c +++ b/src/auth/db-oauth2.c @@ -354,8 +354,9 @@ db_oauth2_value_get_var_expand_table(struct auth_request *auth_request, return table; } -int db_oauth2_template_export(struct db_oauth2_request *req, - const char **error_r) +static int +db_oauth2_template_export(struct db_oauth2_request *req, + const char **error_r) { /* var=$ expands into var=${oauth2:var} */ const struct var_expand_func_table funcs_table[] = { diff --git a/src/auth/db-oauth2.h b/src/auth/db-oauth2.h index 6b7aac4f1c..1b18a356bf 100644 --- a/src/auth/db-oauth2.h +++ b/src/auth/db-oauth2.h @@ -44,6 +44,4 @@ void db_oauth2_lookup(struct db_oauth2 *db, struct db_oauth2_request *req, const 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 -- 2.47.3