]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/ditto.c
ncurses 5.7 - patch 20100116
[ncurses.git] / test / ditto.c
index c658de71432d0eb7e88a8128eb5734eb2e85f4fe..387f7077f757303fccce7f27aa3b100616b620ea 100644 (file)
@@ -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            *
  *                                                                          *
  * 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)
  *
 /*
  * 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.
  *
  * The program illustrates how to set up multiple screens from a single
  * program.
@@ -43,7 +43,6 @@
  */
 #include <test.priv.h>
 #include <sys/stat.h>
  */
 #include <test.priv.h>
 #include <sys/stat.h>
-#include <errno.h>
 
 #ifdef USE_PTHREADS
 #include <pthread.h>
 
 #ifdef USE_PTHREADS
 #include <pthread.h>
@@ -259,7 +258,9 @@ close_screen(
 #endif
                void *arg GCC_UNUSED)
 {
 #endif
                void *arg GCC_UNUSED)
 {
+#if HAVE_USE_WINDOW
     (void) sp;
     (void) sp;
+#endif
     (void) arg;
     return endwin();
 }
     (void) arg;
     return endwin();
 }
@@ -377,7 +378,7 @@ main(int argc, char *argv[])
 
     if (argc <= 1)
        usage();
 
     if (argc <= 1)
        usage();
-    
+
     if ((data = typeCalloc(DITTO, (size_t) argc)) == 0)
        failed("calloc data");
 
     if ((data = typeCalloc(DITTO, (size_t) argc)) == 0)
        failed("calloc data");