Modern compilers will warn when a variable in a nested scope hiding
a variable of the same name in an outer scope. One of the arguments
to afs_lhash_remove() is already named 'data'; don't reuse that name
for a local variable.
Change-Id: Icbb5010d298110cd4dab395fc5eec45e01ec9ba3
Reviewed-on: http://gerrit.openafs.org/11371
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
pprev = &cur->next, cur = cur->next) {
lh->remove_tests++;
if (lh->equal(data, cur->data)) {
- void *data = cur->data;
+ void *ptr = cur->data;
if (pprev) {
*pprev = cur->next;
lh->ndata--;
- return data;
+ return ptr;
}
}