3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-26 02:19:26 +01:00

client: Remove display_types queue

This commit is contained in:
Tim Kourt 2017-04-20 13:42:18 -07:00 committed by Denis Kenzior
parent 2267d03bbb
commit c3aa97eec3

View File

@ -35,7 +35,6 @@
#define IWD_PROMPT COLOR_GREEN "[iwd]" COLOR_OFF "# " #define IWD_PROMPT COLOR_GREEN "[iwd]" COLOR_OFF "# "
#define LINE_LEN 81 #define LINE_LEN 81
static struct l_queue *display_types;
static struct l_io *io; static struct l_io *io;
static char dashed_line[LINE_LEN]; static char dashed_line[LINE_LEN];
static char empty_line[LINE_LEN]; static char empty_line[LINE_LEN];
@ -236,8 +235,6 @@ void display_init(void)
memset(&dashed_line, '-', sizeof(dashed_line) - 1); memset(&dashed_line, '-', sizeof(dashed_line) - 1);
memset(&empty_line, ' ', sizeof(empty_line) - 1); memset(&empty_line, ' ', sizeof(empty_line) - 1);
display_types = l_queue_new();
setlinebuf(stdout); setlinebuf(stdout);
rl_erase_empty_line = 1; rl_erase_empty_line = 1;
@ -251,7 +248,4 @@ void display_exit(void)
rl_callback_handler_remove(); rl_callback_handler_remove();
l_io_destroy(io); l_io_destroy(io);
l_queue_destroy(display_types, NULL);
display_types = NULL;
} }