summaryrefslogtreecommitdiff
path: root/ldpd/ldp_snmp.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2025-04-09 09:59:06 +0200
committerGitHub <noreply@github.com>2025-04-09 09:59:06 +0200
commit8418e57791eabc9feba637b69bd9ee35bed6860a (patch)
tree48b9c05795135606782f9ec359c3f319f5d534dc /ldpd/ldp_snmp.c
parent1d426d99619b7818f4b63b52f83fadfe902b9854 (diff)
parent27ba9956a15c17b7e8a6ba38aa8bbb4514fa90df (diff)
Merge pull request #17915 from mjstapp/compile_wshadow
Diffstat (limited to 'ldpd/ldp_snmp.c')
-rw-r--r--ldpd/ldp_snmp.c4
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;