mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 10:04:18 +00:00
zebra: Use the enum, luke
Use the enum and let the compiler help us figure out what cases are being missed. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
edb904e81c
commit
dc31de93e1
@ -1275,7 +1275,7 @@ static void fpm_process_queue(struct thread *t)
|
|||||||
static void fpm_process_event(struct thread *t)
|
static void fpm_process_event(struct thread *t)
|
||||||
{
|
{
|
||||||
struct fpm_nl_ctx *fnc = THREAD_ARG(t);
|
struct fpm_nl_ctx *fnc = THREAD_ARG(t);
|
||||||
int event = THREAD_VAL(t);
|
enum fpm_nl_events event = THREAD_VAL(t);
|
||||||
|
|
||||||
switch (event) {
|
switch (event) {
|
||||||
case FNE_DISABLE:
|
case FNE_DISABLE:
|
||||||
@ -1328,11 +1328,6 @@ static void fpm_process_event(struct thread *t)
|
|||||||
if (IS_ZEBRA_DEBUG_FPM)
|
if (IS_ZEBRA_DEBUG_FPM)
|
||||||
zlog_debug("%s: LSP walk finished", __func__);
|
zlog_debug("%s: LSP walk finished", __func__);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
|
||||||
if (IS_ZEBRA_DEBUG_FPM)
|
|
||||||
zlog_debug("%s: unhandled event %d", __func__, event);
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user