summaryrefslogtreecommitdiff
path: root/test/tclock.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/tclock.c')
-rw-r--r--test/tclock.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/test/tclock.c b/test/tclock.c
index 1a749628914d..b0374a1a240a 100644
--- a/test/tclock.c
+++ b/test/tclock.c
@@ -1,4 +1,4 @@
-/* $Id: tclock.c,v 1.48 2023/02/25 16:42:22 tom Exp $ */
+/* $Id: tclock.c,v 1.52 2025/07/05 15:11:35 tom Exp $ */
#define NEED_TIME_H
#include <test.priv.h>
@@ -145,7 +145,7 @@ main(int argc, char *argv[])
int lastbeep = -1;
bool odd = FALSE;
time_t tim;
- struct tm *t;
+ const struct tm *t;
char szChar[20];
char *text;
short my_bg = COLOR_BLACK;
@@ -161,11 +161,8 @@ main(int argc, char *argv[])
d_option = TRUE;
break;
#endif
- case OPTS_VERSION:
- show_version(argv);
- ExitProgram(EXIT_SUCCESS);
default:
- usage(ch == OPTS_USAGE);
+ CASE_COMMON;
/* NOTREACHED */
}
}
@@ -220,7 +217,7 @@ main(int argc, char *argv[])
for (;;) {
napms(100);
- tim = time(0);
+ tim = time(NULL);
t = localtime(&tim);
hours = (t->tm_hour + (t->tm_min / 60.0));
@@ -293,7 +290,7 @@ main(int argc, char *argv[])
int
main(void)
{
- printf("This program requires the header math.h and trignometric functions\n");
+ printf("This program requires the header math.h and trigonometric functions\n");
ExitProgram(EXIT_FAILURE);
}
#endif