changeset 78:1fa0ba4e10df

nsnake: rename wait to delay to avoid collision with POSIX
author David Demelier <markand@malikania.fr>
date Wed, 16 Dec 2020 13:49:22 +0100
parents bcf963076d94
children 13c58b51bce5
files nsnake.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/nsnake.c	Wed Dec 16 13:49:07 2020 +0100
+++ b/nsnake.c	Wed Dec 16 13:49:22 2020 +0100
@@ -137,7 +137,7 @@
 static void             input(void);
 static void             update(void);
 static void             draw(void);
-static void             wait(unsigned int);
+static void             delay(unsigned int);
 static const char *     scores_path(void);
 static bool             scores_read(struct score scores[]);
 static bool             scores_write(const struct score scores[]);
@@ -423,7 +423,7 @@
 }
 
 static void
-wait(unsigned int ms)
+delay(unsigned int ms)
 {
 	struct timespec ts = {
 		.tv_sec = 0,
@@ -607,7 +607,7 @@
 		draw();
 		wrefresh(game_view.top);
 		wrefresh(game_view.frame);
-		wait(snake.diry ? 118 : 100);
+		delay(snake.diry ? 118 : 100);
 	}
 
 	/* Register score only if wanted. */