summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
Diffstat (limited to 'games')
-rw-r--r--games/snake/snake/snake.c3
-rw-r--r--games/snake/snscore/snscore.c6
2 files changed, 6 insertions, 3 deletions
diff --git a/games/snake/snake/snake.c b/games/snake/snake/snake.c
index c75589ed422..4d768f4b4ce 100644
--- a/games/snake/snake/snake.c
+++ b/games/snake/snake/snake.c
@@ -65,6 +65,7 @@ static char rcsid[] = "$NetBSD: snake.c,v 1.8 1995/04/29 00:06:41 mycroft Exp $"
#include <pwd.h>
#include <stdlib.h>
#include <time.h>
+#include <unistd.h>
#include "snake.h"
#include "pathnames.h"
@@ -479,7 +480,7 @@ post(iscore, flag)
int iscore, flag;
{
short score = iscore;
- short uid;
+ uid_t uid;
short oldbest=0;
short allbwho=0, allbscore=0;
struct passwd *p;
diff --git a/games/snake/snscore/snscore.c b/games/snake/snscore/snscore.c
index 83e08612573..ea94d6596de 100644
--- a/games/snake/snscore/snscore.c
+++ b/games/snake/snscore/snscore.c
@@ -52,13 +52,14 @@ static char rcsid[] = "$NetBSD: snscore.c,v 1.5 1995/04/24 12:25:43 cgd Exp $";
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
#include "pathnames.h"
char *recfile = _PATH_RAWSCORES;
#define MAXPLAYERS 256
struct player {
- short uids;
+ uit_d uids;
short scores;
char *name;
} players[MAXPLAYERS], temp;
@@ -66,7 +67,8 @@ struct player {
int
main()
{
- short uid, score;
+ uid_t uid;
+ short score;
FILE *fd;
int noplayers;
int i, j, notsorted;