git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove unnecessary null checks
[dpdk.git]
/
app
/
test-cmdline
/
commands.c
diff --git
a/app/test-cmdline/commands.c
b/app/test-cmdline/commands.c
index
d67c0ca
..
a13e1d1
100644
(file)
--- a/
app/test-cmdline/commands.c
+++ b/
app/test-cmdline/commands.c
@@
-193,7
+193,7
@@
cmd_num_parsed(void *parsed_result,
}
cmdline_parse_token_num_t cmd_num_tok =
}
cmdline_parse_token_num_t cmd_num_tok =
- TOKEN_NUM_INITIALIZER(struct cmd_num_result, num, UINT32);
+ TOKEN_NUM_INITIALIZER(struct cmd_num_result, num,
RTE_
UINT32);
cmdline_parse_inst_t cmd_num = {
.f = cmd_num_parsed, /* function to call */
cmdline_parse_inst_t cmd_num = {
.f = cmd_num_parsed, /* function to call */
@@
-294,8
+294,10
@@
cmd_get_history_bufsize_parsed(__rte_unused void *parsed_result,
struct cmdline *cl,
__rte_unused void *data)
{
struct cmdline *cl,
__rte_unused void *data)
{
+ struct rdline *rdl = cmdline_get_rdline(cl);
+
cmdline_printf(cl, "History buffer size: %zu\n",
cmdline_printf(cl, "History buffer size: %zu\n",
-
sizeof(cl->rdl.history_buf
));
+
rdline_get_history_buffer_size(rdl
));
}
cmdline_parse_token_string_t cmd_get_history_bufsize_tok =
}
cmdline_parse_token_string_t cmd_get_history_bufsize_tok =
@@
-326,7
+328,9
@@
cmd_clear_history_parsed(__rte_unused void *parsed_result,
struct cmdline *cl,
__rte_unused void *data)
{
struct cmdline *cl,
__rte_unused void *data)
{
- rdline_clear_history(&cl->rdl);
+ struct rdline *rdl = cmdline_get_rdline(cl);
+
+ rdline_clear_history(rdl);
}
cmdline_parse_token_string_t cmd_clear_history_tok =
}
cmdline_parse_token_string_t cmd_clear_history_tok =