From 7f002afe63c0ae06bf011d6cc83fb2c0dcc6f373 Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Tue, 8 Dec 2009 09:06:46 +0000 Subject: Relevant BUGIDs: Purpose of commit: cleanup Commit summary: --------------- 2009-12-08 Tomas Mraz * modules/pam_listfile/pam_listfile.c(pam_sm_authenticate): Remove unused function and variable. --- modules/pam_listfile/pam_listfile.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'modules/pam_listfile/pam_listfile.c') diff --git a/modules/pam_listfile/pam_listfile.c b/modules/pam_listfile/pam_listfile.c index f7ed9a40..3768aa72 100644 --- a/modules/pam_listfile/pam_listfile.c +++ b/modules/pam_listfile/pam_listfile.c @@ -39,17 +39,6 @@ #include #include -/* checks if a user is on a list of members */ -static int is_on_list(char * const *list, const char *member) -{ - while (*list) { - if (strcmp(*list, member) == 0) - return 1; - list++; - } - return 0; -} - /* --- authentication management functions (only) --- */ /* Extended Items that are not directly available via pam_get_item() */ @@ -81,7 +70,6 @@ pam_sm_authenticate (pam_handle_t *pamh, int flags UNUSED, /* Stuff for "extended" items */ struct passwd *userinfo; - struct group *grpinfo; apply_type=APPLY_TYPE_NULL; memset(apply_val,0,sizeof(apply_val)); -- cgit v1.2.3