# HG changeset patch # User Richard M. Stallman # Date 841788027 0 # Node ID 4c74d7f1cfa63ea4feceafa740b4b27663cdce9e # Parent 43957811082958bcde87006b25ca3e4a6d36b65d (term_init): Avoid type-mismatch calling get_frame_size. diff -r 439578110829 -r 4c74d7f1cfa6 src/term.c --- a/src/term.c Tue Sep 03 21:51:08 1996 +0000 +++ b/src/term.c Tue Sep 03 22:00:27 1996 +0000 @@ -1585,8 +1585,13 @@ term_get_fkeys (address); /* Get frame size from system, or else from termcap. */ - get_frame_size (&FRAME_WIDTH (selected_frame), - &FRAME_HEIGHT (selected_frame)); + { + int height, width; + get_frame_size (&width, &height); + FRAME_WIDTH (selected_frame) = width; + FRAME_HEIGHT (selected_frame) = height; + } + if (FRAME_WIDTH (selected_frame) <= 0) FRAME_WIDTH (selected_frame) = tgetnum ("co"); if (FRAME_HEIGHT (selected_frame) <= 0)