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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user