summaryrefslogtreecommitdiff
path: root/proto/bmp/map.h
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2021-03-28 15:13:23 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2023-04-16 20:05:17 +0200
commita995ed43860eb139a13456242aa12486179fac86 (patch)
tree6fe2dbfa3a86790e1150ac8925c68f7d521f116e /proto/bmp/map.h
parentad16e351773f4b606dd8b4dbbe77c2cb35bf5133 (diff)
BMP: Do not use global instance ptr internally
Use local variable to refence relevant instance instead of using global instance ptr. Also, use 'p' variable instead of 'bmp' so we can use common macros like TRACE().
Diffstat (limited to 'proto/bmp/map.h')
-rw-r--r--proto/bmp/map.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/bmp/map.h b/proto/bmp/map.h
index 0ad5295f..8e7ea695 100644
--- a/proto/bmp/map.h
+++ b/proto/bmp/map.h
@@ -60,9 +60,9 @@ const struct bmp_peer_map_entry *
bmp_peer_map_get(struct bmp_peer_map *map, const struct bmp_peer_map_key key);
typedef void (*bmp_peer_map_walk_action)(const struct bmp_peer_map_key key,
- const byte *data, const size_t data_size);
+ const byte *data, const size_t data_size, void *arg);
void
-bmp_peer_map_walk(const struct bmp_peer_map *map, bmp_peer_map_walk_action action);
+bmp_peer_map_walk(const struct bmp_peer_map *map, bmp_peer_map_walk_action action, void *arg);
#endif /* _BIRD_BMP_MAP_H_ */