]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: oauth2 - make db_oauth2_template_export() static
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 15 Mar 2017 22:32:01 +0000 (00:32 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 16 Mar 2017 17:43:57 +0000 (19:43 +0200)
It's not used outside db-oauth2.c

src/auth/db-oauth2.c
src/auth/db-oauth2.h

index 557f6ffdb08b6a18d2b4819965c70b8036281647..8e63d3538316a61939dbc2f9fb31b2bee20fe185 100644 (file)
@@ -344,8 +344,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 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[] = {
index 6b7aac4f1c8b5f6fa7b83e01db740fb6bc232922..1b18a356bfe0575936646784ecc4ab93b7fa12fa 100644 (file)
@@ -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