aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/fmgr.h11
-rw-r--r--src/test/modules/ldap_password_func/ldap_password_func.c7
2 files changed, 5 insertions, 13 deletions
diff --git a/src/include/fmgr.h b/src/include/fmgr.h
index ccb4070a251..1e3795de4a8 100644
--- a/src/include/fmgr.h
+++ b/src/include/fmgr.h
@@ -425,14 +425,13 @@ extern int no_such_variable
/*
- * Declare _PG_init/_PG_fini centrally. Historically each shared library had
- * its own declaration; but now that we want to mark these PGDLLEXPORT, using
- * central declarations avoids each extension having to add that. Any
- * existing declarations in extensions will continue to work if fmgr.h is
- * included before them, otherwise compilation for Windows will fail.
+ * Declare _PG_init centrally. Historically each shared library had its own
+ * declaration; but now that we want to mark these PGDLLEXPORT, using central
+ * declarations avoids each extension having to add that. Any existing
+ * declarations in extensions will continue to work if fmgr.h is included
+ * before them, otherwise compilation for Windows will fail.
*/
extern PGDLLEXPORT void _PG_init(void);
-extern PGDLLEXPORT void _PG_fini(void);
/*-------------------------------------------------------------------------
diff --git a/src/test/modules/ldap_password_func/ldap_password_func.c b/src/test/modules/ldap_password_func/ldap_password_func.c
index 99c18a8f1c8..24d9c637818 100644
--- a/src/test/modules/ldap_password_func/ldap_password_func.c
+++ b/src/test/modules/ldap_password_func/ldap_password_func.c
@@ -23,7 +23,6 @@
PG_MODULE_MAGIC;
void _PG_init(void);
-void _PG_fini(void);
/* hook function */
static char *rot13_passphrase(char *password);
@@ -37,12 +36,6 @@ _PG_init(void)
ldap_password_hook = rot13_passphrase;
}
-void
-_PG_fini(void)
-{
- /* do nothing yet */
-}
-
static char *
rot13_passphrase(char *pw)
{