Mercurial > dovecot > core-2.2
diff src/auth/userdb-nss.c @ 7561:1a58b18652a6 HEAD
Avoid using shadow variables. Unfortunately -Wshadow also complains about
index variable conflicting with index(), which is used in way too many
places to change.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 27 May 2008 02:09:47 +0300 |
parents | 7ed926ed7aa4 |
children | c47b78e843aa |
line wrap: on
line diff
--- a/src/auth/userdb-nss.c Tue May 27 00:16:12 2008 +0300 +++ b/src/auth/userdb-nss.c Tue May 27 02:09:47 2008 +0300 @@ -130,13 +130,13 @@ static void userdb_nss_deinit(struct userdb_module *_module) { struct nss_userdb_module *module = (struct nss_userdb_module *)_module; - void (*endpwent)(void); + void (*mod_endpwent)(void); + const char *symbol; - endpwent = module_get_symbol(&module->nss_module, - t_strdup_printf("_nss_%s_endpwent", - module->nss_module.name)); - if (endpwent != NULL) - endpwent(); + symbol = t_strdup_printf("_nss_%s_endpwent", module->nss_module.name); + mod_endpwent = module_get_symbol(&module->nss_module, symbol); + if (mod_endpwent != NULL) + mod_endpwent(); } struct userdb_module_interface userdb_nss = {