diff options
author | Rafael Zalamena <rzalamena@cvs.openbsd.org> | 2015-08-26 00:29:25 +0000 |
---|---|---|
committer | Rafael Zalamena <rzalamena@cvs.openbsd.org> | 2015-08-26 00:29:25 +0000 |
commit | ea7b4737a2274a814a2c9b78bfabad346fda0989 (patch) | |
tree | 02548c337271c65901f9e8027b043352a5e36f12 /games/robots/robots.h | |
parent | f7129fe43ed48fea7a5ea9d61492418183429676 (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/robots.h')
-rw-r--r-- | games/robots/robots.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/games/robots/robots.h b/games/robots/robots.h index 67bebb8edcb..cefce8ad2b5 100644 --- a/games/robots/robots.h +++ b/games/robots/robots.h @@ -1,4 +1,4 @@ -/* $OpenBSD: robots.h,v 1.8 2014/11/16 04:49:48 guenther Exp $ */ +/* $OpenBSD: robots.h,v 1.9 2015/08/26 00:29:24 rzalamena Exp $ */ /* $NetBSD: robots.h,v 1.5 1995/04/24 12:24:54 cgd Exp $ */ /* @@ -107,7 +107,7 @@ extern char Cnt_move, Field[Y_FIELDSIZE][X_FIELDSIZE], *Next_move, extern int Count, Level, Num_robots, Num_scores, Score, Start_level, Wait_bonus; -extern struct timeval tv; +extern struct timespec tv; extern COORD Max, Min, My_pos, Robots[]; |