Skip to content

Commit fe28d25

Browse files
author
Mark Stapp
committed
bgpd: add some const to debug api
Add some const to a debug api, make it clear what is and isn't changed. Signed-off-by: Mark Stapp <mjs@cisco.com>
1 parent 72a2f16 commit fe28d25

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bgpd/bgp_debug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ const char *bgp_notify_admin_message(char *buf, size_t bufsz, uint8_t *data,
565565
}
566566

567567
/* dump notify packet */
568-
void bgp_notify_print(struct peer *peer, struct bgp_notify *bgp_notify,
568+
void bgp_notify_print(const struct peer *peer, const struct bgp_notify *bgp_notify,
569569
const char *direct, bool hard_reset)
570570
{
571571
const char *subcode_str;

bgpd/bgp_debug.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ extern bool bgp_dump_attr(struct attr *attr, char *buf, size_t size);
168168
extern bool bgp_debug_peer_updout_enabled(char *host);
169169
extern const char *bgp_notify_code_str(char code);
170170
extern const char *bgp_notify_subcode_str(char code, char subcode);
171-
extern void bgp_notify_print(struct peer *peer, struct bgp_notify *bgp_notify,
171+
extern void bgp_notify_print(const struct peer *peer, const struct bgp_notify *bgp_notify,
172172
const char *direct, bool hard_reset);
173173

174174
extern const struct message bgp_status_msg[];

0 commit comments

Comments
 (0)