summaryrefslogtreecommitdiff
path: root/examples/vm_power_manager
diff options
context:
space:
mode:
authorOlivier Matz <olivier.matz@6wind.com>2014-12-17 13:55:25 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-12-18 00:26:08 +0100
commitb68bc0b83a98e968c2a2cd8ae68b7bc0b6beec6d (patch)
tree0da5f9517eaf5465fd466a5b62367313085ea3ca /examples/vm_power_manager
parent2e099bc5d104ca62c44b80b60207b213e8a23cd5 (diff)
downloaddpdk-b68bc0b83a98e968c2a2cd8ae68b7bc0b6beec6d.zip
dpdk-b68bc0b83a98e968c2a2cd8ae68b7bc0b6beec6d.tar.gz
dpdk-b68bc0b83a98e968c2a2cd8ae68b7bc0b6beec6d.tar.xz
examples/vm_power: fix initialization of cmdline token
Fix a typo: cmdline_parse_token_string_t was used in place of cmdline_parse_num_string_t. Seen with clang-3.5. Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Diffstat (limited to 'examples/vm_power_manager')
-rw-r--r--examples/vm_power_manager/vm_power_cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/vm_power_manager/vm_power_cli.c b/examples/vm_power_manager/vm_power_cli.c
index bd685fd..7690d14 100644
--- a/examples/vm_power_manager/vm_power_cli.c
+++ b/examples/vm_power_manager/vm_power_cli.c
@@ -624,7 +624,7 @@ cmd_set_cpu_freq_parsed(void *parsed_result, struct cmdline *cl,
cmdline_parse_token_string_t cmd_set_cpu_freq =
TOKEN_STRING_INITIALIZER(struct cmd_set_cpu_freq_result,
set_cpu_freq, "set_cpu_freq");
-cmdline_parse_token_string_t cmd_set_cpu_freq_core_num =
+cmdline_parse_token_num_t cmd_set_cpu_freq_core_num =
TOKEN_NUM_INITIALIZER(struct cmd_set_cpu_freq_result,
core_num, UINT8);
cmdline_parse_token_string_t cmd_set_cpu_freq_cmd_cmd =