From 387940a856bac59fb77d13572b504bf51cb1ed3b Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Fri, 5 Jan 2024 22:44:00 +0100 Subject: libpam: use correct function definition The declaration uses static keyword, the definition does not. Fix the definition, because the function is only used in this file. Signed-off-by: Tobias Stoeckmann --- libpam/pam_handlers.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libpam/pam_handlers.c b/libpam/pam_handlers.c index 6c3a8ba7..88e12253 100644 --- a/libpam/pam_handlers.c +++ b/libpam/pam_handlers.c @@ -947,10 +947,10 @@ _pam_load_module(pam_handle_t *pamh, const char *mod_path, int handler_type) return success == PAM_SUCCESS ? mod : NULL; } -int _pam_add_handler(pam_handle_t *pamh - , int handler_type, int other, int stack_level, int type - , int *actions, const char *mod_path - , int argc, char **argv, size_t argvlen) +static int _pam_add_handler(pam_handle_t *pamh + , int handler_type, int other, int stack_level + , int type, int *actions, const char *mod_path + , int argc, char **argv, size_t argvlen) { struct loaded_module *mod = NULL; struct handler **handler_p; -- cgit v1.2.3