X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fditto.c;h=387f7077f757303fccce7f27aa3b100616b620ea;hp=c658de71432d0eb7e88a8128eb5734eb2e85f4fe;hb=c04d54322f7835ed42e597967d8fa5471025fcac;hpb=d998cb49bfb53bd99900fd4ed94519579bea99de diff --git a/test/ditto.c b/test/ditto.c index c658de71..387f7077 100644 --- a/test/ditto.c +++ b/test/ditto.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc. * + * Copyright (c) 1998-2008,2009 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 (1998-on) * - * $Id: ditto.c,v 1.33 2008/11/16 00:19:59 juergen Exp $ + * $Id: ditto.c,v 1.35 2009/10/24 21:33:24 tom Exp $ * * The program illustrates how to set up multiple screens from a single * program. @@ -43,7 +43,6 @@ */ #include #include -#include #ifdef USE_PTHREADS #include @@ -259,7 +258,9 @@ close_screen( #endif void *arg GCC_UNUSED) { +#if HAVE_USE_WINDOW (void) sp; +#endif (void) arg; return endwin(); } @@ -377,7 +378,7 @@ main(int argc, char *argv[]) if (argc <= 1) usage(); - + if ((data = typeCalloc(DITTO, (size_t) argc)) == 0) failed("calloc data");