summaryrefslogtreecommitdiffstats
path: root/pceplib
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2022-05-09 23:16:30 +0200
committerGitHub <noreply@github.com>2022-05-09 23:16:30 +0200
commit2a3807c3cec0c37461d94c447d0997027af1c5a0 (patch)
treed3f12bc4a5d5da573fb3d80bcf9ba0337d8c2ee8 /pceplib
parentMerge pull request #11154 from opensourcerouting/fix/increase_bgp_flags (diff)
parent*: Avoid casting to the same type as on the left (diff)
downloadfrr-2a3807c3cec0c37461d94c447d0997027af1c5a0.tar.xz
frr-2a3807c3cec0c37461d94c447d0997027af1c5a0.zip
Merge pull request #11163 from opensourcerouting/fix/same_type_casting
*: Avoid casting to the same type as on the left
Diffstat (limited to 'pceplib')
-rw-r--r--pceplib/pcep_msg_tlvs_encoding.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pceplib/pcep_msg_tlvs_encoding.c b/pceplib/pcep_msg_tlvs_encoding.c
index c46e859c4..b5a65d457 100644
--- a/pceplib/pcep_msg_tlvs_encoding.c
+++ b/pceplib/pcep_msg_tlvs_encoding.c
@@ -1185,8 +1185,7 @@ pcep_decode_tlv_pol_id(struct pcep_object_tlv_header *tlv_hdr,
return (struct pcep_object_tlv_header *)ipv4;
} else {
ipv4->is_ipv4 = false;
- struct pcep_object_tlv_srpag_pol_id *ipv6 =
- (struct pcep_object_tlv_srpag_pol_id *)ipv4;
+ struct pcep_object_tlv_srpag_pol_id *ipv6 = ipv4;
ipv6->color = ntohl(uint32_ptr[0]);
decode_ipv6(&uint32_ptr[1], &ipv6->end_point.ipv6);
return (struct pcep_object_tlv_header *)ipv6;