[dpdk-dev,pktgen,2/6] fix screen type saving
Checks
Commit Message
Seen with clang:
error: explicitly assigning value of variable of type 'int' to itself
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
lib/cli/cli_scrn.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -160,7 +160,7 @@ scrn_create(int scrn_type, int16_t nrows, int16_t ncols, int theme)
scrn->nrows = nrows;
scrn->ncols = ncols;
scrn->theme = theme;
- scrn_type = scrn_type;
+ scrn->type = scrn_type;
if (scrn_type == SCRN_STDIN_TYPE) {
if (scrn_stdin_setup()) {