diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-06-13 16:01:40 +0300 | 
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-06-13 16:01:40 +0300 | 
| commit | 58a92cb81084e33dcb291b7fef09eddccb7cef81 (patch) | |
| tree | b976dee92dbf018732ecf164f1b573ff9e9a8c77 /bgpd/bgp_fsm.c | |
| parent | 5b28833d38319ae5cb48235ae0261dd57e35dbd2 (diff) | |
bgpd: Use enum bgp_fsm_state_progress for bgp_stop()
```
bgpd/bgp_fsm.c:1360:29: warning: conflicting types for ‘bgp_stop’ due to enum/integer mismatch; have ‘enum bgp_fsm_state_progress(struct peer *)’ [-Wenum-int-mismatch]
 1360 | enum bgp_fsm_state_progress bgp_stop(struct peer *peer)
      |                             ^~~~~~~~
In file included from bgpd/bgp_fsm.c:29:
./bgpd/bgp_fsm.h:111:12: note: previous declaration of ‘bgp_stop’ with type ‘int(struct peer *)’
  111 | extern int bgp_stop(struct peer *peer);
      |            ^~~~~~~~
```
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_fsm.c')
| -rw-r--r-- | bgpd/bgp_fsm.c | 7 | 
1 files changed, 0 insertions, 7 deletions
diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c index ad6906d092..4e8894cb44 100644 --- a/bgpd/bgp_fsm.c +++ b/bgpd/bgp_fsm.c @@ -46,13 +46,6 @@  DEFINE_HOOK(peer_backward_transition, (struct peer * peer), (peer));  DEFINE_HOOK(peer_status_changed, (struct peer * peer), (peer)); -enum bgp_fsm_state_progress { -	BGP_FSM_FAILURE_AND_DELETE = -2, -	BGP_FSM_FAILURE = -1, -	BGP_FSM_SUCCESS = 0, -	BGP_FSM_SUCCESS_STATE_TRANSFER = 1, -}; -  /* Definition of display strings corresponding to FSM events. This should be   * kept consistent with the events defined in bgpd.h   */  | 
