summaryrefslogtreecommitdiff
path: root/lib/link_state.h
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-04-07 10:19:09 +0300
committerGitHub <noreply@github.com>2023-04-07 10:19:09 +0300
commit0633fb7856e75f5631d25386eb240b49d1f5cb0d (patch)
tree87e33643719330e84f867da800896ee4ebc7ac3e /lib/link_state.h
parent9261fbdc6ebc4245a62d250b0a5588ee70db52b2 (diff)
parentb589466918337c11021fd4085aacf0d7e963a9a4 (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 'lib/link_state.h')
-rw-r--r--lib/link_state.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/link_state.h b/lib/link_state.h
index e6a6388ba4..b75f035431 100644
--- a/lib/link_state.h
+++ b/lib/link_state.h
@@ -314,7 +314,7 @@ extern int ls_attributes_same(struct ls_attributes *a1,
*
* @return New Link State Prefix
*/
-extern struct ls_prefix *ls_prefix_new(struct ls_node_id adv, struct prefix p);
+extern struct ls_prefix *ls_prefix_new(struct ls_node_id adv, struct prefix *p);
/**
* Remove Link State Prefix. Data Structure is freed.
@@ -709,7 +709,7 @@ extern void ls_subnet_del_all(struct ls_ted *ted, struct ls_subnet *subnet);
* @return Subnet if found, NULL otherwise
*/
extern struct ls_subnet *ls_find_subnet(struct ls_ted *ted,
- const struct prefix prefix);
+ const struct prefix *prefix);
/**
* Create a new Link State Data Base.