diff options
author | jdc <jdc@NetBSD.org> | 2003-02-26 07:14:44 +0000 |
---|---|---|
committer | jdc <jdc@NetBSD.org> | 2003-02-26 07:14:44 +0000 |
commit | c99d5f7b86b928000b2f260ab9041389d3aeb43a (patch) | |
tree | caa239a0202a2e5e8a158016152bd747b63a8d5a /hunt/hunt/playit.c | |
parent | 9e7c7e78ddab375a54ee72ce1466c711b54903aa (diff) | |
download | bsdgames-darwin-c99d5f7b86b928000b2f260ab9041389d3aeb43a.tar.gz bsdgames-darwin-c99d5f7b86b928000b2f260ab9041389d3aeb43a.tar.zst bsdgames-darwin-c99d5f7b86b928000b2f260ab9041389d3aeb43a.zip |
Make this work on sparc64 (don't use long and assume sizeof(long) = 4).
Tested against a LE32 system (arm).
Diffstat (limited to 'hunt/hunt/playit.c')
-rw-r--r-- | hunt/hunt/playit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hunt/hunt/playit.c b/hunt/hunt/playit.c index 381ef130..87de7825 100644 --- a/hunt/hunt/playit.c +++ b/hunt/hunt/playit.c @@ -1,4 +1,4 @@ -/* $NetBSD: playit.c,v 1.5 2002/09/20 15:47:19 mycroft Exp $ */ +/* $NetBSD: playit.c,v 1.6 2003/02/26 07:14:44 jdc Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold @@ -7,7 +7,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: playit.c,v 1.5 2002/09/20 15:47:19 mycroft Exp $"); +__RCSID("$NetBSD: playit.c,v 1.6 2003/02/26 07:14:44 jdc Exp $"); #endif /* not lint */ # include <sys/file.h> @@ -82,7 +82,7 @@ playit() { int ch; int y, x; - long version; + u_int32_t version; if (read(Socket, (char *) &version, LONGLEN) != LONGLEN) { bad_con(); @@ -617,7 +617,7 @@ redraw_screen() void do_message() { - long version; + u_int32_t version; if (read(Socket, (char *) &version, LONGLEN) != LONGLEN) { bad_con(); |