From 191b04ad2c5c94a743205842add2754a9ad28592 Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Thu, 15 Jun 2006 20:09:22 +0000 Subject: Relevant BUGIDs: Purpose of commit: cleanup Commit summary: --------------- 2006-06-15 Thorsten Kukuk * modules/pam_group/pam_group.c (logic_member): Remove unused variable len. (check_account): Fix usage of err variable in debug code. --- modules/pam_group/pam_group.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'modules') diff --git a/modules/pam_group/pam_group.c b/modules/pam_group/pam_group.c index 80edee5a..dd0bfcce 100644 --- a/modules/pam_group/pam_group.c +++ b/modules/pam_group/pam_group.c @@ -1,8 +1,6 @@ /* pam_group module */ /* - * $Id$ - * * Written by Andrew Morgan 1996/7/6 */ @@ -220,11 +218,10 @@ read_field (const pam_handle_t *pamh, int fd, char **buf, int *from, int *to) static int logic_member(const char *string, int *at) { - int len,c,to; + int c,to; int done=0; int token=0; - len=0; to=*at; do { c = string[to++]; @@ -478,11 +475,10 @@ check_time (const pam_handle_t *pamh, const void *AT, static int find_member(const char *string, int *at) { - int len,c,to; + int c,to; int done=0; int token=0; - len=0; to=*at; do { c = string[to++]; @@ -717,15 +713,17 @@ static int check_account(pam_handle_t *pamh, const char *service, /* now set the groups for the user */ if (no_grps > 0) { +#ifdef DEBUG int err; +#endif D(("trying to set %d groups", no_grps)); #ifdef DEBUG for (err=0; err