2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

4074. [cleanup] Cleaned up more warnings from gcc -Wshadow. [RT #38708]

This commit is contained in:
Mark Andrews
2015-02-27 10:55:55 +11:00
parent c10fda07d6
commit af669cb4fd
27 changed files with 210 additions and 207 deletions

View File

@@ -221,17 +221,17 @@ isc_backtrace_gettrace(void **addrs, int maxaddrs, int *nframes) {
#endif
isc_result_t
isc_backtrace_getsymbolfromindex(int index, const void **addrp,
isc_backtrace_getsymbolfromindex(int idx, const void **addrp,
const char **symbolp)
{
REQUIRE(addrp != NULL && *addrp == NULL);
REQUIRE(symbolp != NULL && *symbolp == NULL);
if (index < 0 || index >= isc__backtrace_nsymbols)
if (idx < 0 || idx >= isc__backtrace_nsymbols)
return (ISC_R_RANGE);
*addrp = isc__backtrace_symtable[index].addr;
*symbolp = isc__backtrace_symtable[index].symbol;
*addrp = isc__backtrace_symtable[idx].addr;
*symbolp = isc__backtrace_symtable[idx].symbol;
return (ISC_R_SUCCESS);
}