X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=test%2Fdots_mvcur.c;h=752422727d1a57c1e35fa56891ed21399972fbd1;hb=4e793faf6575b2297482f77b2bc3d18105c0fc76;hp=558683d56fdb822d5bf22da94ab549996833b082;hpb=52aa842907b31bb56fb5133da3f023b45bd4355f;p=ncurses.git diff --git a/test/dots_mvcur.c b/test/dots_mvcur.c index 558683d5..75242272 100644 --- a/test/dots_mvcur.c +++ b/test/dots_mvcur.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 2007-2008,2009 Free Software Foundation, Inc. * + * Copyright (c) 2007-2009,2013 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -29,7 +29,7 @@ /* * Author: Thomas E. Dickey - 2007 * - * $Id: dots_mvcur.c,v 1.6 2010/11/14 01:00:44 tom Exp $ + * $Id: dots_mvcur.c,v 1.8 2013/05/25 22:58:22 tom Exp $ * * A simple demo of the terminfo interface, and mvcur. */ @@ -46,8 +46,8 @@ static bool interrupted = FALSE; static long total_chars = 0; static time_t started; -static int -outc(TPUTS_ARG c) +static +TPUTS_PROTO(outc, c) { int rc = c; @@ -59,7 +59,7 @@ outc(TPUTS_ARG c) if (putc(c, stdout) == EOF) rc = EOF; } - return rc; + TPUTS_RETURN(rc); } static bool @@ -155,6 +155,7 @@ main(int argc GCC_UNUSED, } } outc(p); + ++x0; fflush(stdout); ++total_chars; }