diff options
| author | Mark Stapp <mjs@voltanet.io> | 2019-04-04 10:54:10 -0400 | 
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2019-04-04 10:54:10 -0400 | 
| commit | deff170e8b363f4f746b7fc9c652ca27f4dd0961 (patch) | |
| tree | 3032887de610806f32d73d1185beee220c865743 /lib/nexthop_group.c | |
| parent | 59d11e7cd197e5902b632d0f8ca6e523ed50489a (diff) | |
libs: use const in copy_nexthops api
Use const for the source arg to copy_nexthops().
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'lib/nexthop_group.c')
| -rw-r--r-- | lib/nexthop_group.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/nexthop_group.c b/lib/nexthop_group.c index dbc3337785..5fb4ea5234 100644 --- a/lib/nexthop_group.c +++ b/lib/nexthop_group.c @@ -118,11 +118,11 @@ void nexthop_del(struct nexthop_group *nhg, struct nexthop *nh)  	nh->next = NULL;  } -void copy_nexthops(struct nexthop **tnh, struct nexthop *nh, +void copy_nexthops(struct nexthop **tnh, const struct nexthop *nh,  		   struct nexthop *rparent)  {  	struct nexthop *nexthop; -	struct nexthop *nh1; +	const struct nexthop *nh1;  	for (nh1 = nh; nh1; nh1 = nh1->next) {  		nexthop = nexthop_new();  | 
