summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-08 12:02:01 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-08 12:02:01 -0800
commitee6eed4ace4c0dac1928428eaca2ba3e96a35bcf (patch)
treeaea91af9033bed03cb6b14e245ecb6edc315a3c6
parent4f7fff260d15b6b6c2b069644eb3875cba8e859d (diff)
Drop X_NOT_POSIX support
It was only used to determine if time() took a time_t pointer or an int pointer as it's argument, and ANSI/ISO C have required a time_t since C89, so we rely on that. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--b4light.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/b4light.c b/b4light.c
index c867665..b942cd9 100644
--- a/b4light.c
+++ b/b4light.c
@@ -287,11 +287,7 @@ main(int argc, char *argv[])
unsigned int w, h, b, d;
Status s;
-#if !defined(X_NOT_POSIX)
srand((int)time((time_t *)NULL));
-#else
- srand((int)time((int *)NULL));
-#endif
toplevel = XtAppInitialize (&app_con, "Beforelight", NULL, ZERO,
&argc, argv, NULL, NULL, ZERO);