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/cxgbe: fix build with optimization=1
[dpdk.git]
/
lib
/
cmdline
/
cmdline.c
diff --git
a/lib/cmdline/cmdline.c
b/lib/cmdline/cmdline.c
index
a176d15
..
e1009ba
100644
(file)
--- a/
lib/cmdline/cmdline.c
+++ b/
lib/cmdline/cmdline.c
@@
-9,8
+9,6
@@
#include <unistd.h>
#include <stdlib.h>
#include <stdarg.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdarg.h>
-#include <inttypes.h>
-#include <fcntl.h>
#include <errno.h>
#include <rte_string_fns.h>
#include <errno.h>
#include <rte_string_fns.h>
@@
-85,13
+83,12
@@
cmdline_new(cmdline_parse_ctx_t *ctx, const char *prompt, int s_in, int s_out)
cl->ctx = ctx;
ret = rdline_init(&cl->rdl, cmdline_write_char, cmdline_valid_buffer,
cl->ctx = ctx;
ret = rdline_init(&cl->rdl, cmdline_write_char, cmdline_valid_buffer,
- cmdline_complete_buffer);
+ cmdline_complete_buffer
, cl
);
if (ret != 0) {
free(cl);
return NULL;
}
if (ret != 0) {
free(cl);
return NULL;
}
- cl->rdl.opaque = cl;
cmdline_set_prompt(cl, prompt);
rdline_newline(&cl->rdl, cl->prompt);
cmdline_set_prompt(cl, prompt);
rdline_newline(&cl->rdl, cl->prompt);