diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2023-01-30 10:08:47 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2023-01-31 15:15:42 -0500 |
| commit | a348c9456f88d45b35d7e293208a6cc348cf5ad6 (patch) | |
| tree | a45a9221aea3ef0d1937bfe276c56aaaab926d6a /isisd/isis_adjacency.c | |
| parent | d5dea3506e4bb55ebea5a225c70e24e8d6c800ac (diff) | |
isisd: Add missing enum's to switch statement
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'isisd/isis_adjacency.c')
| -rw-r--r-- | isisd/isis_adjacency.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/isisd/isis_adjacency.c b/isisd/isis_adjacency.c index 0957c897e6..a887897403 100644 --- a/isisd/isis_adjacency.c +++ b/isisd/isis_adjacency.c @@ -484,9 +484,11 @@ const char *isis_adj_yang_state(enum isis_adj_state state) return "up"; case ISIS_ADJ_INITIALIZING: return "init"; - default: + case ISIS_ADJ_UNKNOWN: return "failed"; } + + assert(!"Reached end of function where we are not expecting to"); } void isis_adj_expire(struct thread *thread) @@ -954,8 +956,9 @@ int isis_adj_usage2levels(enum isis_adj_usage usage) return IS_LEVEL_2; case ISIS_ADJ_LEVEL1AND2: return IS_LEVEL_1 | IS_LEVEL_2; - default: - break; + case ISIS_ADJ_NONE: + return 0; } - return 0; + + assert(!"Reached end of function where we are not expecting to"); } |
