summaryrefslogtreecommitdiffstats
path: root/pimd/pim_cmd.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-11-10 01:30:12 +0100
committerDonald Sharp <sharpd@nvidia.com>2021-11-10 23:35:22 +0100
commite1d1b1dec760f87ec5c1673e6ecbee9ec3f08fb0 (patch)
treeee21d3182dbdf8d9d2e14a35b4f8b0cd107fcfe1 /pimd/pim_cmd.c
parentMerge pull request #9988 from idryzhov/ospf-gr-broken (diff)
downloadfrr-e1d1b1dec760f87ec5c1673e6ecbee9ec3f08fb0.tar.xz
frr-e1d1b1dec760f87ec5c1673e6ecbee9ec3f08fb0.zip
pimd: Remove default from enum based switch
enum based switches should never use default. It makes it very hard to fix and find issues when the enum is changed. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'pimd/pim_cmd.c')
-rw-r--r--pimd/pim_cmd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c
index 4cd94e0df..e5ee7a82a 100644
--- a/pimd/pim_cmd.c
+++ b/pimd/pim_cmd.c
@@ -2446,8 +2446,6 @@ static const char *pim_reg_state2brief_str(enum pim_reg_state reg_state,
case PIM_REG_PRUNE:
strlcpy(state_str, "RegP", state_str_len);
break;
- default:
- strlcpy(state_str, "Unk", state_str_len);
}
return state_str;
}