diff options
| author | Mark Stapp <mjs@cisco.com> | 2025-01-24 15:13:37 -0500 |
|---|---|---|
| committer | Mark Stapp <mjs@cisco.com> | 2025-04-08 14:41:27 -0400 |
| commit | 1378ebf640c7d24a895c84117de7ffc7f0877288 (patch) | |
| tree | 4ad13f19136796f2949afb19180ccfa655a7a1fe /ldpd/ldp_snmp.c | |
| parent | e49a2f9a5304515d4db12794b01c4e6c019a63b5 (diff) | |
ldpd: clean up warnings from -Wshadow
Clean up various variable-shadow warnings in ldpd.
Signed-off-by: Mark Stapp <mjs@cisco.com>
Diffstat (limited to 'ldpd/ldp_snmp.c')
| -rw-r--r-- | ldpd/ldp_snmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ldpd/ldp_snmp.c b/ldpd/ldp_snmp.c index ed391ac600..2e7933f95c 100644 --- a/ldpd/ldp_snmp.c +++ b/ldpd/ldp_snmp.c @@ -620,10 +620,10 @@ static uint8_t *ldpHelloAdjacencyTable(struct variable *v, oid name[], size_t *l memcpy(name, v->name, v->namelen * sizeof(oid)); /* Append index */ - struct in_addr entityLdpId = {.s_addr = 0}; + entityLdpId.s_addr = 0; entityLdpId.s_addr = ldp_rtr_id_get(leconf); - struct in_addr peerLdpId = ctl_adj->id; + peerLdpId = ctl_adj->id; oid_copy_in_addr(name + v->namelen, &entityLdpId); name[v->namelen + 4] = 0; |
