From: Vincent Bernat Date: Sun, 6 Jan 2013 12:34:36 +0000 (+0100) Subject: lldpcli: fix "source unknown" for Dot3/LLDP-MED power. X-Git-Tag: 0.7.0~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=852728bc77939d8c01d8715248c6a76cd6472b95;p=thirdparty%2Flldpd.git lldpcli: fix "source unknown" for Dot3/LLDP-MED power. --- diff --git a/src/client/actions.c b/src/client/actions.c index 8b333161..f852390d 100644 --- a/src/client/actions.c +++ b/src/client/actions.c @@ -675,7 +675,7 @@ register_commands_pow_source(struct cmd_node *source) { commands_new(source, "unknown", "Unknown power source", - NULL, cmd_store_env_and_pop, "source"); + NULL, cmd_store_env_value_and_pop2, "source"); commands_new(source, "primary", "Primary power source", cmd_check_pse, cmd_store_env_value_and_pop2, "source");