diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2023-03-30 15:48:53 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2023-04-06 18:00:09 -0400 |
| commit | b589466918337c11021fd4085aacf0d7e963a9a4 (patch) | |
| tree | 9a56c43152d2733b5a1674152ac8d2c70e6dc891 /sharpd | |
| parent | cf35e49354699fb920997ba2448ea2088acb6a30 (diff) | |
*: Use a `struct prefix *p` instead of a `struct prefix` in functions
When passing a prefix into a function let's pass by address instead
of pass by value. Let's save our stack space.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'sharpd')
| -rw-r--r-- | sharpd/sharp_vty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sharpd/sharp_vty.c b/sharpd/sharp_vty.c index 1fdac2c286..0d7ba34530 100644 --- a/sharpd/sharp_vty.c +++ b/sharpd/sharp_vty.c @@ -1059,7 +1059,7 @@ DEFUN (show_sharp_ted, return CMD_WARNING_CONFIG_FAILED; } /* Get the Subnet from the Link State Database */ - subnet = ls_find_subnet(sg.ted, pref); + subnet = ls_find_subnet(sg.ted, &pref); if (!subnet) { vty_out(vty, "No subnet found for ID %pFX\n", &pref); |
