summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-06-13 16:08:24 +0300
committerDonatas Abraitis <donatas@opensourcerouting.org>2023-06-13 16:08:24 +0300
commitcc280c74cea8183b31f60ef16bda617eca364c9d (patch)
tree5b82df5f2d83780b519f4a6fffe01f4c09489067
parent58a92cb81084e33dcb291b7fef09eddccb7cef81 (diff)
bgpd: Use enum bgp_create_error_code as argument in header
``` bgpd/bgp_vty.c:865:5: warning: conflicting types for ‘bgp_vty_return’ due to enum/integer mismatch; have ‘int(struct vty *, enum bgp_create_error_code)’ [-Wenum-int-mismatch] 865 | int bgp_vty_return(struct vty *vty, enum bgp_create_error_code ret) | ^~~~~~~~~~~~~~ In file included from ./bgpd/bgp_mplsvpn.h:15, from bgpd/bgp_vty.c:48: ./bgpd/bgp_vty.h:148:12: note: previous declaration of ‘bgp_vty_return’ with type ‘int(struct vty *, int)’ 148 | extern int bgp_vty_return(struct vty *vty, int ret); | ^~~~~~~~~~~~~~ ``` Fixing stuff regarding GCC13. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
-rw-r--r--bgpd/bgp_vty.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_vty.h b/bgpd/bgp_vty.h
index 826723b92d..a105b6de3f 100644
--- a/bgpd/bgp_vty.h
+++ b/bgpd/bgp_vty.h
@@ -145,7 +145,7 @@ extern void bgp_config_write_wpkt_quanta(struct vty *vty, struct bgp *bgp);
extern void bgp_config_write_rpkt_quanta(struct vty *vty, struct bgp *bgp);
extern void bgp_config_write_listen(struct vty *vty, struct bgp *bgp);
extern void bgp_config_write_coalesce_time(struct vty *vty, struct bgp *bgp);
-extern int bgp_vty_return(struct vty *vty, int ret);
+extern int bgp_vty_return(struct vty *vty, enum bgp_create_error_code ret);
extern bool bgp_config_inprocess(void);
extern struct peer *peer_and_group_lookup_vty(struct vty *vty,
const char *peer_str);