X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=tack%2Ffun.c;h=58f8b254e7f101c371e04eab71d6e1283440e28a;hp=fd895c372f3bf16d1036168e54137e32f4fa7b94;hb=55ccd2b959766810cf7db8d1c4462f338ce0afc8;hpb=b1f61d9f3aa244512045a6b02e759825d7049d34 diff --git a/tack/fun.c b/tack/fun.c index fd895c37..58f8b254 100644 --- a/tack/fun.c +++ b/tack/fun.c @@ -15,13 +15,13 @@ ** ** You should have received a copy of the GNU General Public License ** along with TACK; see the file COPYING. If not, write to -** the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -** Boston, MA 02111-1307, USA. +** the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +** Boston, MA 02110-1301, USA */ #include -MODULE_ID("$Id: fun.c,v 1.3 2000/03/04 20:29:21 tom Exp $") +MODULE_ID("$Id: fun.c,v 1.6 2005/09/17 19:49:16 tom Exp $") /* * Test the function keys on the terminal. The code for echo tests @@ -58,10 +58,6 @@ struct test_list printer_test_list[] = { #define MAX_STRINGS STRCOUNT -/* scan code externals */ -extern int scan_max; /* length of longest scan code */ -extern char **scan_up, **scan_down, **scan_name; -extern int *scan_tested, *scan_length; /* local definitions */ static const char *fk_name[MAX_STRINGS]; @@ -102,7 +98,7 @@ keys_tested( if (fk_label[i]) { sprintf(outbuf, "%s %s", fk_name[i] ? fk_name[i] : "??", fk_label[i]); - put_columns(outbuf, strlen(outbuf), 16); + put_columns(outbuf, (int) strlen(outbuf), 16); } } put_newlines(2);