diff options
| author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2014-06-10 06:08:13 -0400 |
|---|---|---|
| committer | Michal Marek <mmarek@suse.cz> | 2014-06-10 08:00:53 -0400 |
| commit | bb66fc67192bbd406fe9c22033f1bbbf3e7ec621 (patch) | |
| tree | 19948db86af0bc1d4662fca553d0a23c6e4d648d /scripts/kconfig/lxdialog | |
| parent | 7eb6e340526adf14ed7cf7dfde8b9c6fc0741cfc (diff) | |
kbuild: trivial - use tabs for code indent where possible
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/kconfig/lxdialog')
| -rw-r--r-- | scripts/kconfig/lxdialog/checklist.c | 4 | ||||
| -rw-r--r-- | scripts/kconfig/lxdialog/inputbox.c | 2 | ||||
| -rw-r--r-- | scripts/kconfig/lxdialog/menubox.c | 4 | ||||
| -rw-r--r-- | scripts/kconfig/lxdialog/util.c | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/scripts/kconfig/lxdialog/checklist.c b/scripts/kconfig/lxdialog/checklist.c index 3b15c08ec1fa..8d016faa28d7 100644 --- a/scripts/kconfig/lxdialog/checklist.c +++ b/scripts/kconfig/lxdialog/checklist.c | |||
| @@ -168,13 +168,13 @@ do_resize: | |||
| 168 | 168 | ||
| 169 | /* create new window for the list */ | 169 | /* create new window for the list */ |
| 170 | list = subwin(dialog, list_height, list_width, y + box_y + 1, | 170 | list = subwin(dialog, list_height, list_width, y + box_y + 1, |
| 171 | x + box_x + 1); | 171 | x + box_x + 1); |
| 172 | 172 | ||
| 173 | keypad(list, TRUE); | 173 | keypad(list, TRUE); |
| 174 | 174 | ||
| 175 | /* draw a box around the list items */ | 175 | /* draw a box around the list items */ |
| 176 | draw_box(dialog, box_y, box_x, list_height + 2, list_width + 2, | 176 | draw_box(dialog, box_y, box_x, list_height + 2, list_width + 2, |
| 177 | dlg.menubox_border.atr, dlg.menubox.atr); | 177 | dlg.menubox_border.atr, dlg.menubox.atr); |
| 178 | 178 | ||
| 179 | /* Find length of longest item in order to center checklist */ | 179 | /* Find length of longest item in order to center checklist */ |
| 180 | check_x = 0; | 180 | check_x = 0; |
diff --git a/scripts/kconfig/lxdialog/inputbox.c b/scripts/kconfig/lxdialog/inputbox.c index 447a582198c9..d58de1dc5360 100644 --- a/scripts/kconfig/lxdialog/inputbox.c +++ b/scripts/kconfig/lxdialog/inputbox.c | |||
| @@ -42,7 +42,7 @@ static void print_buttons(WINDOW * dialog, int height, int width, int selected) | |||
| 42 | * Display a dialog box for inputing a string | 42 | * Display a dialog box for inputing a string |
| 43 | */ | 43 | */ |
| 44 | int dialog_inputbox(const char *title, const char *prompt, int height, int width, | 44 | int dialog_inputbox(const char *title, const char *prompt, int height, int width, |
| 45 | const char *init) | 45 | const char *init) |
| 46 | { | 46 | { |
| 47 | int i, x, y, box_y, box_x, box_width; | 47 | int i, x, y, box_y, box_x, box_width; |
| 48 | int input_x = 0, key = 0, button = -1; | 48 | int input_x = 0, key = 0, button = -1; |
diff --git a/scripts/kconfig/lxdialog/menubox.c b/scripts/kconfig/lxdialog/menubox.c index c93de0b2faca..11ae9ad7ac7b 100644 --- a/scripts/kconfig/lxdialog/menubox.c +++ b/scripts/kconfig/lxdialog/menubox.c | |||
| @@ -64,7 +64,7 @@ static int menu_width, item_x; | |||
| 64 | * Print menu item | 64 | * Print menu item |
| 65 | */ | 65 | */ |
| 66 | static void do_print_item(WINDOW * win, const char *item, int line_y, | 66 | static void do_print_item(WINDOW * win, const char *item, int line_y, |
| 67 | int selected, int hotkey) | 67 | int selected, int hotkey) |
| 68 | { | 68 | { |
| 69 | int j; | 69 | int j; |
| 70 | char *menu_item = malloc(menu_width + 1); | 70 | char *menu_item = malloc(menu_width + 1); |
| @@ -182,7 +182,7 @@ static void do_scroll(WINDOW *win, int *scroll, int n) | |||
| 182 | * Display a menu for choosing among a number of options | 182 | * Display a menu for choosing among a number of options |
| 183 | */ | 183 | */ |
| 184 | int dialog_menu(const char *title, const char *prompt, | 184 | int dialog_menu(const char *title, const char *prompt, |
| 185 | const void *selected, int *s_scroll) | 185 | const void *selected, int *s_scroll) |
| 186 | { | 186 | { |
| 187 | int i, j, x, y, box_x, box_y; | 187 | int i, j, x, y, box_x, box_y; |
| 188 | int height, width, menu_height; | 188 | int height, width, menu_height; |
diff --git a/scripts/kconfig/lxdialog/util.c b/scripts/kconfig/lxdialog/util.c index 58a8289dd650..f7abdeb92af0 100644 --- a/scripts/kconfig/lxdialog/util.c +++ b/scripts/kconfig/lxdialog/util.c | |||
| @@ -623,7 +623,7 @@ void item_make(const char *fmt, ...) | |||
| 623 | void item_add_str(const char *fmt, ...) | 623 | void item_add_str(const char *fmt, ...) |
| 624 | { | 624 | { |
| 625 | va_list ap; | 625 | va_list ap; |
| 626 | size_t avail; | 626 | size_t avail; |
| 627 | 627 | ||
| 628 | avail = sizeof(item_cur->node.str) - strlen(item_cur->node.str); | 628 | avail = sizeof(item_cur->node.str) - strlen(item_cur->node.str); |
| 629 | 629 | ||
