]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Use enum bgp_create_error_code as argument in header
authorDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 13 Jun 2023 13:08:24 +0000 (16:08 +0300)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Thu, 30 May 2024 15:15:50 +0000 (15:15 +0000)
commit3e24c25d9ff996dc61f663d730c17e24fb32e787
tree9826f6363184f8bfe9e5f2d5502544f6fe34c348
parent37836fc83ef0734fe470532e2967af7dc37960a0
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>
(cherry picked from commit cc280c74cea8183b31f60ef16bda617eca364c9d)
bgpd/bgp_vty.h