summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2020-04-24 00:10:19 +0000
committerDmitry V. Levin <ldv@altlinux.org>2020-04-24 00:10:19 +0000
commit76916913fc3802ccb5348a69a56fa2bc3946439d (patch)
tree5ba2dcec037fc3ef677be65b5834c505b9c2d2f6
parent5bdb65abf6713c98b0ef374f9f29252d748bd2a9 (diff)
pam_setquota: remove PAM_EXTERN and PAM_STATIC parts
In other modules they were removed by commit Linux-PAM-1.3.0~14. * modules/pam_setquota/pam_setquota.c: Remove PAM_EXTERN and PAM_STATIC parts.
-rw-r--r--modules/pam_setquota/pam_setquota.c23
1 files changed, 8 insertions, 15 deletions
diff --git a/modules/pam_setquota/pam_setquota.c b/modules/pam_setquota/pam_setquota.c
index 360eee43..3e2b9508 100644
--- a/modules/pam_setquota/pam_setquota.c
+++ b/modules/pam_setquota/pam_setquota.c
@@ -169,8 +169,10 @@ parse_params(pam_handle_t *pamh, int argc, const char **argv, struct pam_params
}
}
-PAM_EXTERN int pam_sm_open_session(pam_handle_t *pamh, int flags UNUSED,
- int argc, const char **argv) {
+int
+pam_sm_open_session(pam_handle_t *pamh, int flags UNUSED,
+ int argc, const char **argv)
+{
int retval;
char *val, *mntdevice = NULL;
const void *user;
@@ -381,18 +383,9 @@ PAM_EXTERN int pam_sm_open_session(pam_handle_t *pamh, int flags UNUSED,
}
-PAM_EXTERN
-int pam_sm_close_session(pam_handle_t *pamh UNUSED, int flags UNUSED,
- int argc UNUSED, const char **argv UNUSED) {
+int
+pam_sm_close_session(pam_handle_t *pamh UNUSED, int flags UNUSED,
+ int argc UNUSED, const char **argv UNUSED)
+{
return PAM_SUCCESS;
}
-
-#ifdef PAM_STATIC
-
-/* static module data */
-struct pam_module _pam_setquota_modstruct = {
- "pam_setquota", NULL, NULL, NULL,
- pam_sm_open_session, pam_sm_close_session, NULL
-};
-
-#endif