]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/inserts.c
ncurses 5.6 - patch 20080412
[ncurses.git] / test / inserts.c
index 25c2d56b8f0e3bece0fe3102f31318f821a70ef7..458788a5ff9fc0fe97ca480e64619522490b0346 100644 (file)
@@ -26,7 +26,7 @@
  * authorization.                                                           *
  ****************************************************************************/
 /*
- * $Id: inserts.c,v 1.17 2007/03/11 00:19:00 tom Exp $
+ * $Id: inserts.c,v 1.18 2007/07/21 17:41:55 tom Exp $
  *
  * Demonstrate the winsstr() and winsch functions.
  * Thomas Dickey - 2002/10/19
@@ -405,7 +405,7 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED)
 
     setlocale(LC_ALL, "");
 
-    while ((ch = getopt(argc, argv, "mn:w")) != EOF) {
+    while ((ch = getopt(argc, argv, "mn:w")) != -1) {
        switch (ch) {
        case 'm':
            m_opt = TRUE;