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
net/iavf: disable promiscuous mode on close
[dpdk.git]
/
examples
/
cmdline
/
parse_obj_list.c
diff --git
a/examples/cmdline/parse_obj_list.c
b/examples/cmdline/parse_obj_list.c
index
69eb448
..
b04adbe
100644
(file)
--- a/
examples/cmdline/parse_obj_list.c
+++ b/
examples/cmdline/parse_obj_list.c
@@
-98,13
+98,13
@@
int complete_get_elt_obj_list(cmdline_parse_token_hdr_t *tk,
return -1;
if (dstbuf)
return -1;
if (dstbuf)
- s
nprintf(dstbuf, size, "%s", o->nam
e);
+ s
trlcpy(dstbuf, o->name, siz
e);
return 0;
}
return 0;
}
-int get_help_obj_list(__
attribute__((unused))
cmdline_parse_token_hdr_t *tk,
+int get_help_obj_list(__
rte_unused
cmdline_parse_token_hdr_t *tk,
char *dstbuf, unsigned int size)
{
snprintf(dstbuf, size, "Obj-List");
char *dstbuf, unsigned int size)
{
snprintf(dstbuf, size, "Obj-List");