diff options
Diffstat (limited to 'scripts/kconfig/lxdialog/lxdialog.c')
-rw-r--r-- | scripts/kconfig/lxdialog/lxdialog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/kconfig/lxdialog/lxdialog.c b/scripts/kconfig/lxdialog/lxdialog.c index 79f6c5fb5cef..c264e024309e 100644 --- a/scripts/kconfig/lxdialog/lxdialog.c +++ b/scripts/kconfig/lxdialog/lxdialog.c | |||
@@ -78,11 +78,11 @@ int main(int argc, const char *const *argv) | |||
78 | offset += 2; | 78 | offset += 2; |
79 | } | 79 | } |
80 | } else if (!strcmp(argv[offset + 1], "--backtitle")) { | 80 | } else if (!strcmp(argv[offset + 1], "--backtitle")) { |
81 | if (backtitle != NULL) { | 81 | if (dlg.backtitle != NULL) { |
82 | Usage(argv[0]); | 82 | Usage(argv[0]); |
83 | exit(-1); | 83 | exit(-1); |
84 | } else { | 84 | } else { |
85 | backtitle = argv[offset + 2]; | 85 | dlg.backtitle = argv[offset + 2]; |
86 | offset += 2; | 86 | offset += 2; |
87 | } | 87 | } |
88 | } else if (!strcmp(argv[offset + 1], "--clear")) { | 88 | } else if (!strcmp(argv[offset + 1], "--clear")) { |
@@ -123,7 +123,7 @@ int main(int argc, const char *const *argv) | |||
123 | retval = (*(modePtr->jumper)) (title, argc - offset, argv + offset); | 123 | retval = (*(modePtr->jumper)) (title, argc - offset, argv + offset); |
124 | 124 | ||
125 | if (opt_clear) { /* clear screen before exit */ | 125 | if (opt_clear) { /* clear screen before exit */ |
126 | attr_clear(stdscr, LINES, COLS, screen_attr); | 126 | attr_clear(stdscr, LINES, COLS, dlg.screen.atr); |
127 | refresh(); | 127 | refresh(); |
128 | } | 128 | } |
129 | end_dialog(); | 129 | end_dialog(); |