summaryrefslogtreecommitdiff
path: root/test/dots_curses.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/dots_curses.c')
-rw-r--r--test/dots_curses.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/test/dots_curses.c b/test/dots_curses.c
index 1a553213c48a..481baa519d04 100644
--- a/test/dots_curses.c
+++ b/test/dots_curses.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * Copyright 2018-2022,2023 Thomas E. Dickey *
+ * Copyright 2018-2024,2025 Thomas E. Dickey *
* Copyright 2014,2017 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
@@ -30,7 +30,7 @@
/*
* Author: Thomas E. Dickey
*
- * $Id: dots_curses.c,v 1.25 2023/01/07 17:21:48 tom Exp $
+ * $Id: dots_curses.c,v 1.28 2025/07/05 15:21:56 tom Exp $
*
* A simple demo of the curses interface used for comparison with termcap.
*/
@@ -97,7 +97,7 @@ usage(int ok)
,"Options:"
," -T TERM override $TERM"
#if HAVE_USE_DEFAULT_COLORS
- ," -d invoke use_default_colors()"
+ ," -d invoke use_default_colors"
#endif
#if HAVE_USE_ENV
," -e allow environment $LINES / $COLUMNS"
@@ -161,16 +161,13 @@ main(int argc, char *argv[])
case 's':
s_option = atoi(optarg);
break;
- case OPTS_VERSION:
- show_version(argv);
- ExitProgram(EXIT_SUCCESS);
default:
- usage(ch == OPTS_USAGE);
+ CASE_COMMON;
/* NOTREACHED */
}
}
- srand((unsigned) time(0));
+ srand((unsigned) time(NULL));
SetupAlarm(r_option);
InitAndCatch(initscr(), onsig);