summaryrefslogtreecommitdiff
path: root/games/robots/main.c
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@cvs.openbsd.org>2015-08-26 00:29:25 +0000
committerRafael Zalamena <rzalamena@cvs.openbsd.org>2015-08-26 00:29:25 +0000
commitea7b4737a2274a814a2c9b78bfabad346fda0989 (patch)
tree02548c337271c65901f9e8027b043352a5e36f12 /games/robots/main.c
parentf7129fe43ed48fea7a5ea9d61492418183429676 (diff)
Improve robots(6) by using timespec*() functions, replacing gettimeofday()
with clock_gettime(MONOTONIC) to avoid clock changes and replacing poll() with ppoll() to deal better with timespec. ok guenther@.
Diffstat (limited to 'games/robots/main.c')
-rw-r--r--games/robots/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/games/robots/main.c b/games/robots/main.c
index 3f7cf413cdd..7ba98c7cf5b 100644
--- a/games/robots/main.c
+++ b/games/robots/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.19 2014/11/03 22:14:54 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.20 2015/08/26 00:29:24 rzalamena Exp $ */
/* $NetBSD: main.c,v 1.5 1995/04/22 10:08:54 cgd Exp $ */
/*
@@ -70,7 +70,6 @@ main(int ac, char *av[])
Real_time = TRUE;
/* Could be a command-line option */
tv.tv_sec = 3;
- tv.tv_usec = 0;
break;
case 'a':
Start_level = 4;