Make this work on 64 bit big endian platforms.

This commit is contained in:
martin 2003-06-11 09:51:56 +00:00
parent df45325b8e
commit 6c0c40a580
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: connect.c,v 1.3 1997/10/11 08:13:40 lukem Exp $ */
/* $NetBSD: connect.c,v 1.4 2003/06/11 09:51:56 martin 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: connect.c,v 1.3 1997/10/11 08:13:40 lukem Exp $");
__RCSID("$NetBSD: connect.c,v 1.4 2003/06/11 09:51:56 martin Exp $");
#endif /* not lint */
# include "hunt.h"
@ -20,8 +20,8 @@ do_connect(name, team, enter_status)
char team;
long enter_status;
{
static long uid;
static long mode;
static int32_t uid;
static int32_t mode;
if (uid == 0)
uid = htonl(getuid());