diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-09-29 09:17:56 +0300 |
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-09-29 10:24:16 +0300 |
| commit | 02d8b80ce4cc4a741ac796df453668b43b3e5d0f (patch) | |
| tree | d239cb951d40fb8da5e1402863719660d5b55be6 /lib/link_state.c | |
| parent | c323b930eaeb779a973e95b1202223164a5e2b02 (diff) | |
*: Do not cast to the same type as the destination is
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'lib/link_state.c')
| -rw-r--r-- | lib/link_state.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/link_state.c b/lib/link_state.c index 105e3e28a9..25373bdb20 100644 --- a/lib/link_state.c +++ b/lib/link_state.c @@ -1739,7 +1739,7 @@ struct ls_message *ls_subnet2msg(struct ls_message *msg, struct ls_vertex *ls_msg2vertex(struct ls_ted *ted, struct ls_message *msg, bool delete) { - struct ls_node *node = (struct ls_node *)msg->data.node; + struct ls_node *node = msg->data.node; struct ls_vertex *vertex = NULL; switch (msg->event) { @@ -1779,7 +1779,7 @@ struct ls_vertex *ls_msg2vertex(struct ls_ted *ted, struct ls_message *msg, struct ls_edge *ls_msg2edge(struct ls_ted *ted, struct ls_message *msg, bool delete) { - struct ls_attributes *attr = (struct ls_attributes *)msg->data.attr; + struct ls_attributes *attr = msg->data.attr; struct ls_edge *edge = NULL; switch (msg->event) { @@ -1819,7 +1819,7 @@ struct ls_edge *ls_msg2edge(struct ls_ted *ted, struct ls_message *msg, struct ls_subnet *ls_msg2subnet(struct ls_ted *ted, struct ls_message *msg, bool delete) { - struct ls_prefix *pref = (struct ls_prefix *)msg->data.prefix; + struct ls_prefix *pref = msg->data.prefix; struct ls_subnet *subnet = NULL; switch (msg->event) { |
