summaryrefslogtreecommitdiff
path: root/games/snake
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-06-11 06:51:12 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-06-11 06:51:12 +0000
commit932d6aa05bcc7eeb0da57af1cf63a95ffd21cd79 (patch)
tree432d431990991433ac22d5e0235a559734d8df8f /games/snake
parent8959c415e80d91fd48938803bc8373ee1cded042 (diff)
uid is not a short
Diffstat (limited to 'games/snake')
-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;