diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-04-07 10:19:09 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-07 10:19:09 +0300 |
| commit | 0633fb7856e75f5631d25386eb240b49d1f5cb0d (patch) | |
| tree | 87e33643719330e84f867da800896ee4ebc7ac3e /pathd/path_ted.c | |
| parent | 9261fbdc6ebc4245a62d250b0a5588ee70db52b2 (diff) | |
| parent | b589466918337c11021fd4085aacf0d7e963a9a4 (diff) | |
Merge pull request #13162 from donaldsharp/pass_by_value_no_no_no
*: Use a `struct prefix *p` instead of a `struct prefix` in functions
Diffstat (limited to 'pathd/path_ted.c')
| -rw-r--r-- | pathd/path_ted.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pathd/path_ted.c b/pathd/path_ted.c index d8ddd8cdc8..fd5c342d84 100644 --- a/pathd/path_ted.c +++ b/pathd/path_ted.c @@ -268,7 +268,7 @@ uint32_t path_ted_query_type_c(struct prefix *prefix, uint8_t algo) switch (prefix->family) { case AF_INET: case AF_INET6: - subnet = ls_find_subnet(ted_state_g.ted, *prefix); + subnet = ls_find_subnet(ted_state_g.ted, prefix); if (subnet) { if ((CHECK_FLAG(subnet->ls_pref->flags, LS_PREF_SR)) && (subnet->ls_pref->sr.algo == algo)) @@ -298,7 +298,7 @@ uint32_t path_ted_query_type_e(struct prefix *prefix, uint32_t iface_id) switch (prefix->family) { case AF_INET: case AF_INET6: - subnet = ls_find_subnet(ted_state_g.ted, *prefix); + subnet = ls_find_subnet(ted_state_g.ted, prefix); if (subnet && subnet->vertex && subnet->vertex->outgoing_edges) { /* from the vertex linked in subnet */ |
