Make this work on sparc64 (don't use long and assume sizeof(long) = 4).

Tested against a LE32 system (arm).
This commit is contained in:
jdc 2003-02-26 07:14:44 +00:00
parent 65e5548a17
commit e5c039ad54
2 changed files with 8 additions and 8 deletions

View File

@ -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();

View File

@ -1,4 +1,4 @@
/* $NetBSD: answer.c,v 1.4 2002/09/20 20:54:16 mycroft Exp $ */
/* $NetBSD: answer.c,v 1.5 2003/02/26 07:14:45 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: answer.c,v 1.4 2002/09/20 20:54:16 mycroft Exp $");
__RCSID("$NetBSD: answer.c,v 1.5 2003/02/26 07:14:45 jdc Exp $");
#endif /* not lint */
# include <ctype.h>
@ -32,11 +32,11 @@ answer()
static int enter_status;
static int socklen;
static u_long machine;
static u_long uid;
static u_int32_t uid;
static SOCKET sockstruct;
char *cp1, *cp2;
int flags;
long version;
u_int32_t version;
int i;
# ifdef INTERNET