Also, remove unused MODULE_NAME macro.
* modules/pam_localuser/pam_localuser.c: Stop including unused header files. (MODULE_NAME): Remove. --- modules/pam_localuser/pam_localuser.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/modules/pam_localuser/pam_localuser.c b/modules/pam_localuser/pam_localuser.c index dc7e8cae..9c3df3c7 100644 --- a/modules/pam_localuser/pam_localuser.c +++ b/modules/pam_localuser/pam_localuser.c @@ -37,25 +37,16 @@
#include "config.h"
-#include <errno.h> -#include <limits.h> +#include <stdio.h> #include <stdlib.h> #include <string.h> #include <syslog.h> -#include <stdio.h> -#include <stdarg.h> -#include <time.h> #include <unistd.h> -#include <sys/stat.h> -#include <sys/types.h>
#include <security/pam_modules.h> -#include <security/_pam_macros.h> #include <security/pam_ext.h> #include "pam_inline.h"
-#define MODULE_NAME "pam_localuser" - int pam_sm_authenticate (pam_handle_t *pamh, int flags UNUSED, int argc, const char **argv)