Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 89e5462

Browse files
spinojaramasahir0y
authored andcommitted
kconfig: Fix typo HEIGTH to HEIGHT
Fixed a typo in some variables where height was misspelled as heigth. Signed-off-by: Isak Ellmer <isak01@gmail.com> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
1 parent 978fa00 commit 89e5462

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

scripts/kconfig/lxdialog/checklist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ int dialog_checklist(const char *title, const char *prompt, int height,
119119
}
120120

121121
do_resize:
122-
if (getmaxy(stdscr) < (height + CHECKLIST_HEIGTH_MIN))
122+
if (getmaxy(stdscr) < (height + CHECKLIST_HEIGHT_MIN))
123123
return -ERRDISPLAYTOOSMALL;
124124
if (getmaxx(stdscr) < (width + CHECKLIST_WIDTH_MIN))
125125
return -ERRDISPLAYTOOSMALL;

scripts/kconfig/lxdialog/dialog.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,17 +162,17 @@ int on_key_esc(WINDOW *win);
162162
int on_key_resize(void);
163163

164164
/* minimum (re)size values */
165-
#define CHECKLIST_HEIGTH_MIN 6 /* For dialog_checklist() */
165+
#define CHECKLIST_HEIGHT_MIN 6 /* For dialog_checklist() */
166166
#define CHECKLIST_WIDTH_MIN 6
167-
#define INPUTBOX_HEIGTH_MIN 2 /* For dialog_inputbox() */
167+
#define INPUTBOX_HEIGHT_MIN 2 /* For dialog_inputbox() */
168168
#define INPUTBOX_WIDTH_MIN 2
169-
#define MENUBOX_HEIGTH_MIN 15 /* For dialog_menu() */
169+
#define MENUBOX_HEIGHT_MIN 15 /* For dialog_menu() */
170170
#define MENUBOX_WIDTH_MIN 65
171-
#define TEXTBOX_HEIGTH_MIN 8 /* For dialog_textbox() */
171+
#define TEXTBOX_HEIGHT_MIN 8 /* For dialog_textbox() */
172172
#define TEXTBOX_WIDTH_MIN 8
173-
#define YESNO_HEIGTH_MIN 4 /* For dialog_yesno() */
173+
#define YESNO_HEIGHT_MIN 4 /* For dialog_yesno() */
174174
#define YESNO_WIDTH_MIN 4
175-
#define WINDOW_HEIGTH_MIN 19 /* For init_dialog() */
175+
#define WINDOW_HEIGHT_MIN 19 /* For init_dialog() */
176176
#define WINDOW_WIDTH_MIN 80
177177

178178
int init_dialog(const char *backtitle);

scripts/kconfig/lxdialog/inputbox.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ int dialog_inputbox(const char *title, const char *prompt, int height, int width
4343
strcpy(instr, init);
4444

4545
do_resize:
46-
if (getmaxy(stdscr) <= (height - INPUTBOX_HEIGTH_MIN))
46+
if (getmaxy(stdscr) <= (height - INPUTBOX_HEIGHT_MIN))
4747
return -ERRDISPLAYTOOSMALL;
4848
if (getmaxx(stdscr) <= (width - INPUTBOX_WIDTH_MIN))
4949
return -ERRDISPLAYTOOSMALL;

scripts/kconfig/lxdialog/menubox.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ int dialog_menu(const char *title, const char *prompt,
172172
do_resize:
173173
height = getmaxy(stdscr);
174174
width = getmaxx(stdscr);
175-
if (height < MENUBOX_HEIGTH_MIN || width < MENUBOX_WIDTH_MIN)
175+
if (height < MENUBOX_HEIGHT_MIN || width < MENUBOX_WIDTH_MIN)
176176
return -ERRDISPLAYTOOSMALL;
177177

178178
height -= 4;

scripts/kconfig/lxdialog/textbox.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ int dialog_textbox(const char *title, const char *tbuf, int initial_height,
175175

176176
do_resize:
177177
getmaxyx(stdscr, height, width);
178-
if (height < TEXTBOX_HEIGTH_MIN || width < TEXTBOX_WIDTH_MIN)
178+
if (height < TEXTBOX_HEIGHT_MIN || width < TEXTBOX_WIDTH_MIN)
179179
return -ERRDISPLAYTOOSMALL;
180180
if (initial_height != 0)
181181
height = initial_height;

scripts/kconfig/lxdialog/util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ int init_dialog(const char *backtitle)
291291
getyx(stdscr, saved_y, saved_x);
292292

293293
getmaxyx(stdscr, height, width);
294-
if (height < WINDOW_HEIGTH_MIN || width < WINDOW_WIDTH_MIN) {
294+
if (height < WINDOW_HEIGHT_MIN || width < WINDOW_WIDTH_MIN) {
295295
endwin();
296296
return -ERRDISPLAYTOOSMALL;
297297
}

scripts/kconfig/lxdialog/yesno.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ int dialog_yesno(const char *title, const char *prompt, int height, int width)
3232
WINDOW *dialog;
3333

3434
do_resize:
35-
if (getmaxy(stdscr) < (height + YESNO_HEIGTH_MIN))
35+
if (getmaxy(stdscr) < (height + YESNO_HEIGHT_MIN))
3636
return -ERRDISPLAYTOOSMALL;
3737
if (getmaxx(stdscr) < (width + YESNO_WIDTH_MIN))
3838
return -ERRDISPLAYTOOSMALL;

scripts/kconfig/mconf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -659,9 +659,9 @@ static void conf_choice(struct menu *menu)
659659
dialog_clear();
660660
res = dialog_checklist(prompt ? prompt : "Main Menu",
661661
radiolist_instructions,
662-
MENUBOX_HEIGTH_MIN,
662+
MENUBOX_HEIGHT_MIN,
663663
MENUBOX_WIDTH_MIN,
664-
CHECKLIST_HEIGTH_MIN);
664+
CHECKLIST_HEIGHT_MIN);
665665
selected = item_activate_selected();
666666
switch (res) {
667667
case 0:

0 commit comments

Comments
 (0)