diff options
author | peter <peter@FreeBSD.org> | 2000-10-11 07:31:01 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-10-11 07:31:01 +0000 |
commit | a81407a537bfd1ab9e48c69007eb6b30e66d271b (patch) | |
tree | 9ec00b41242bbe63b83c0ac5316c539466d9f9de /contrib/ncurses/test/view.c | |
parent | cc6a5cc05f3c2cde24338d35c9714f1e7ebf032e (diff) | |
download | FreeBSD-src-a81407a537bfd1ab9e48c69007eb6b30e66d271b.zip FreeBSD-src-a81407a537bfd1ab9e48c69007eb6b30e66d271b.tar.gz |
Import ncurses-5.1-20001009 onto the vendor branch
Diffstat (limited to 'contrib/ncurses/test/view.c')
-rw-r--r-- | contrib/ncurses/test/view.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/ncurses/test/view.c b/contrib/ncurses/test/view.c index f4c2f06..4c1344c 100644 --- a/contrib/ncurses/test/view.c +++ b/contrib/ncurses/test/view.c @@ -23,7 +23,7 @@ * scroll operation worked, and the refresh() code only had to do a * partial repaint. * - * $Id: view.c,v 1.29 2000/05/21 01:43:03 tom Exp $ + * $Id: view.c,v 1.31 2000/09/02 18:14:52 tom Exp $ */ #include <test.priv.h> @@ -53,7 +53,7 @@ static RETSIGTYPE finish(int sig) GCC_NORETURN; static void show_all(void); -#if defined(SIGWINCH) && defined(TIOCGWINSZ) && defined(HAVE_RESIZETERM) +#if defined(SIGWINCH) && defined(TIOCGWINSZ) && HAVE_RESIZETERM #define CAN_RESIZE 1 #else #define CAN_RESIZE 0 @@ -433,7 +433,7 @@ show_all(void) scrollok(stdscr, FALSE); /* prevent screen from moving */ for (i = 1; i < LINES; i++) { move(i, 0); - printw("%3d:", (lptr + i - lines)); + printw("%3ld:", (long) (lptr + i - lines)); clrtoeol(); if ((s = lptr[i - 1]) != 0) { int len = ch_len(s); |