summaryrefslogtreecommitdiffstats
path: root/hunt/huntd
diff options
context:
space:
mode:
authorjdc <jdc@NetBSD.org>2003-02-26 07:14:44 +0000
committerjdc <jdc@NetBSD.org>2003-02-26 07:14:44 +0000
commitc99d5f7b86b928000b2f260ab9041389d3aeb43a (patch)
treecaa239a0202a2e5e8a158016152bd747b63a8d5a /hunt/huntd
parent9e7c7e78ddab375a54ee72ce1466c711b54903aa (diff)
downloadbsdgames-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/huntd')
-rw-r--r--hunt/huntd/answer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hunt/huntd/answer.c b/hunt/huntd/answer.c
index 832f74cc..05ff67f4 100644
--- a/hunt/huntd/answer.c
+++ b/hunt/huntd/answer.c
@@ -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