From 76916913fc3802ccb5348a69a56fa2bc3946439d Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Fri, 24 Apr 2020 00:10:19 +0000 Subject: 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. --- modules/pam_setquota/pam_setquota.c | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) (limited to 'modules/pam_setquota') 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 -- cgit v1.2.3