3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

client: move static array inits out of display_init()

This commit is contained in:
Tim Kourt 2018-08-03 12:29:04 -07:00 committed by Denis Kenzior
parent 664723f427
commit ce4a272186

View File

@ -38,8 +38,8 @@
static struct l_signal *resize_signal; static struct l_signal *resize_signal;
static struct l_io *io; static struct l_io *io;
static char dashed_line[LINE_LEN]; static char dashed_line[LINE_LEN] = { [0 ... LINE_LEN - 2] = '-' };
static char empty_line[LINE_LEN]; static char empty_line[LINE_LEN] = { [0 ... LINE_LEN - 2] = ' ' };
static struct l_timeout *refresh_timeout; static struct l_timeout *refresh_timeout;
static struct saved_input *agent_saved_input; static struct saved_input *agent_saved_input;
@ -592,9 +592,6 @@ void display_init(void)
{ {
sigset_t mask; sigset_t mask;
memset(&dashed_line, '-', sizeof(dashed_line) - 1);
memset(&empty_line, ' ', sizeof(empty_line) - 1);
display_refresh.redo_entries = l_queue_new(); display_refresh.redo_entries = l_queue_new();
setlinebuf(stdout); setlinebuf(stdout);