summaryrefslogtreecommitdiff
path: root/bgpd/bgp_aspath.c
diff options
context:
space:
mode:
authorMartin Winter <mwinter@opensourcerouting.org>2019-02-26 08:19:49 +0700
committerGitHub <noreply@github.com>2019-02-26 08:19:49 +0700
commit51127bc88c285e63b4cdff50b6e3f95f06f6893e (patch)
tree6087f1f360328a0e3fb328b6ca5f5bc380112445 /bgpd/bgp_aspath.c
parent5a80b8c7c254b9955e357555ebd929ab9bc123ef (diff)
parent0026ac15abdf156cc65d3583164a4df6f7e15ee9 (diff)
Merge pull request #3832 from kooky/rename_backet
Rename backet to bucket
Diffstat (limited to 'bgpd/bgp_aspath.c')
-rw-r--r--bgpd/bgp_aspath.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bgpd/bgp_aspath.c b/bgpd/bgp_aspath.c
index 9521a9e912..51833394d9 100644
--- a/bgpd/bgp_aspath.c
+++ b/bgpd/bgp_aspath.c
@@ -2077,14 +2077,14 @@ void aspath_print_vty(struct vty *vty, const char *format, struct aspath *as,
vty_out(vty, "%s", suffix);
}
-static void aspath_show_all_iterator(struct hash_backet *backet,
+static void aspath_show_all_iterator(struct hash_bucket *bucket,
struct vty *vty)
{
struct aspath *as;
- as = (struct aspath *)backet->data;
+ as = (struct aspath *)bucket->data;
- vty_out(vty, "[%p:%u] (%ld) ", (void *)backet, backet->key, as->refcnt);
+ vty_out(vty, "[%p:%u] (%ld) ", (void *)bucket, bucket->key, as->refcnt);
vty_out(vty, "%s\n", as->str);
}
@@ -2092,7 +2092,7 @@ static void aspath_show_all_iterator(struct hash_backet *backet,
`show [ip] bgp paths' command. */
void aspath_print_all_vty(struct vty *vty)
{
- hash_iterate(ashash, (void (*)(struct hash_backet *,
+ hash_iterate(ashash, (void (*)(struct hash_bucket *,
void *))aspath_show_all_iterator,
vty);
}