diff options
author | paul <paul@FreeBSD.org> | 1995-01-24 13:27:46 +0000 |
---|---|---|
committer | paul <paul@FreeBSD.org> | 1995-01-24 13:27:46 +0000 |
commit | d0f75ce585aff4f50472796d7d6a8574909191a8 (patch) | |
tree | 9e98312d3eeaafffe47ec70b4cd02e871b49aa4a /lib/libforms | |
parent | 860d93251e38334c8858861c8c6b09a0f7f4435f (diff) | |
download | FreeBSD-src-d0f75ce585aff4f50472796d7d6a8574909191a8.zip FreeBSD-src-d0f75ce585aff4f50472796d7d6a8574909191a8.tar.gz |
Changed the example to use the forms spec file.
Made a couple of variable name changes.
Diffstat (limited to 'lib/libforms')
-rw-r--r-- | lib/libforms/forms.c | 2 | ||||
-rw-r--r-- | lib/libforms/forms.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/libforms/forms.c b/lib/libforms/forms.c index 72dd90f..c0fc9bb 100644 --- a/lib/libforms/forms.c +++ b/lib/libforms/forms.c @@ -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); diff --git a/lib/libforms/forms.h b/lib/libforms/forms.h index bdb5988..be56303 100644 --- a/lib/libforms/forms.h +++ b/lib/libforms/forms.h @@ -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; |