Skip to content

Commit

Permalink
djustment for build without curses and fix C90 warnings
Browse files Browse the repository at this point in the history
Fix warnings in screenio.c fix C90 warnings.

libcob:
* screenio.c (cob_sys_scr_dump, cob_sys_scr_restore) fixed C90 warnings
  • Loading branch information
chaat committed Jul 11, 2024
1 parent 314adc1 commit 73ad00d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions libcob/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

2024-07-11 Chuck Haatvedt <[email protected]>

* screenio.c (cob_sys_scr_dump, cob_sys_scr_restore) fixed C90 warnings

2024-07-11 Chuck Haatvedt <[email protected]>

* screenio.c (cob_sys_scr_dump, cob_sys_scr_restore) fixed C90 warnings
Expand Down
12 changes: 6 additions & 6 deletions libcob/screenio.c
Original file line number Diff line number Diff line change
Expand Up @@ -4921,14 +4921,14 @@ cob_sys_set_scr_size (unsigned char *line, unsigned char *col)
int
cob_sys_scr_dump(unsigned char *parm)
{
COB_CHK_PARMS (CBL_GC_SCR_DUMP, 1);
init_cob_screen_if_needed ();

#ifdef WITH_EXTENDED_SCREENIO
int result;
FILE *filep;
const char *filename = cob_get_param_str_buffered (1);

COB_CHK_PARMS (CBL_GC_SCR_DUMP, 1);
init_cob_screen_if_needed ();

if (filename && (filep = fopen(filename, "wb")) != NULL)
{
refresh();
Expand All @@ -4948,14 +4948,14 @@ cob_sys_scr_dump(unsigned char *parm)
/* restore the current stdscr screen from a file */
int cob_sys_scr_restore(unsigned char *parm)
{
COB_CHK_PARMS (CBL_GC_SCR_RESTORE, 1);
init_cob_screen_if_needed ();

#ifdef WITH_EXTENDED_SCREENIO
int result;
FILE *filep;
const char *filename = cob_get_param_str_buffered (1);

COB_CHK_PARMS (CBL_GC_SCR_RESTORE, 1);
init_cob_screen_if_needed ();

if (filename && (filep = fopen(filename, "rb")) != NULL)
{
WINDOW *replacement = getwin(filep);
Expand Down

0 comments on commit 73ad00d

Please sign in to comment.