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
doc: add GRE option flow item to feature list
[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
..
959bcd1
100644
(file)
--- a/
examples/cmdline/parse_obj_list.c
+++ b/
examples/cmdline/parse_obj_list.c
@@
-6,11
+6,9
@@
#include <stdio.h>
#include <inttypes.h>
#include <stdio.h>
#include <inttypes.h>
-#include <stdarg.h>
#include <errno.h>
#include <ctype.h>
#include <string.h>
#include <errno.h>
#include <ctype.h>
#include <string.h>
-#include <netinet/in.h>
#include <cmdline_parse.h>
#include <cmdline_parse_ipaddr.h>
#include <cmdline_parse.h>
#include <cmdline_parse_ipaddr.h>
@@
-98,13
+96,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");