mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Changed the example to use the forms spec file.
Made a couple of variable name changes.
This commit is contained in:
parent
10ee7eaff2
commit
39c631d1b9
2 changed files with 3 additions and 3 deletions
|
|
@ -43,7 +43,7 @@ initfrm(struct form *form)
|
|||
cbreak();
|
||||
noecho();
|
||||
|
||||
form->window = newwin(form->nlines, form->ncols, form->y, form->x);
|
||||
form->window = newwin(form->height, form->width, form->y, form->x);
|
||||
if (!form->window) {
|
||||
print_status("Couldn't open window, closing form");
|
||||
return (ERR);
|
||||
|
|
|
|||
|
|
@ -30,8 +30,8 @@ struct form {
|
|||
int no_fields;
|
||||
int current_field;
|
||||
struct field *field;
|
||||
int nlines;
|
||||
int ncols;
|
||||
int height;
|
||||
int width;
|
||||
int y;
|
||||
int x;
|
||||
WINDOW *window;
|
||||
|
|
|
|||
Loading…
Reference in a new issue