summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2022-04-26 13:18:18 +0300
committerGitHub <noreply@github.com>2022-04-26 13:18:18 +0300
commit3f6ebf9b1d80c9f016d3d2801ef0a7a6702ff1eb (patch)
tree7845f2f8838b7df7e254ed9ab95e3ebe9f236dba
parent64f9fa7fcfdb8c55c68b3f0e3557f8b60af50f10 (diff)
parent5c7a6fb36c0cf8113c19af7354782838988b263b (diff)
Merge pull request #11089 from opensourcerouting/build-gcc-11.2
build: fix new gcc 11.2 warnings
-rw-r--r--sharpd/sharp_vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sharpd/sharp_vty.c b/sharpd/sharp_vty.c
index 889643f65e..2281b3ce26 100644
--- a/sharpd/sharp_vty.c
+++ b/sharpd/sharp_vty.c
@@ -104,7 +104,7 @@ DEFPY(watch_nexthop_v6, watch_nexthop_v6_cmd,
p.family = AF_INET6;
} else {
type_import = true;
- p = *(const struct prefix *)inhop;
+ prefix_copy(&p, inhop);
}
sharp_nh_tracker_get(&p);
@@ -149,7 +149,7 @@ DEFPY(watch_nexthop_v4, watch_nexthop_v4_cmd,
}
else {
type_import = true;
- p = *(const struct prefix *)inhop;
+ prefix_copy(&p, inhop);
}
sharp_nh_tracker_get(&p);