aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2020-03-20 11:57:26 +0100
committerAndreas Schneider <asn@samba.org>2020-03-20 13:08:19 +0100
commit84e0bd0530c3197d1aba37beb918f3815fa891ca (patch)
tree9e3372e4d2f730ca6423a5047dd36c357c0bd3ad
parent85feb50228ddf97a1f2b1bc7941af63512a2d416 (diff)
downloadpam_wrapper-84e0bd0530c3197d1aba37beb918f3815fa891ca.tar.gz
pam_wrapper-84e0bd0530c3197d1aba37beb918f3815fa891ca.tar.xz
pam_wrapper-84e0bd0530c3197d1aba37beb918f3815fa891ca.zip
pwrap: Move the constructor to the end of the source file
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
-rw-r--r--src/pam_wrapper.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/pam_wrapper.c b/src/pam_wrapper.c
index 160e6e5..8965ce8 100644
--- a/src/pam_wrapper.c
+++ b/src/pam_wrapper.c
@@ -1165,19 +1165,6 @@ bool pam_wrapper_enabled(void)
return pwrap.enabled;
}
-/****************************
- * CONSTRUCTOR
- ***************************/
-void pwrap_constructor(void)
-{
- /*
- * Here is safe place to call pwrap_init() and initialize data
- * for main process.
- */
- pwrap_init();
-}
-
-
#ifdef HAVE_OPENPAM
static int pwrap_openpam_start(const char *service_name,
const char *user,
@@ -1779,6 +1766,19 @@ int cannot_audit(int x)
}
/****************************
+ * CONSTRUCTOR
+ ***************************/
+
+void pwrap_constructor(void)
+{
+ /*
+ * Here is safe place to call pwrap_init() and initialize data
+ * for main process.
+ */
+ pwrap_init();
+}
+
+/****************************
* DESTRUCTOR
***************************/