From 4ddaf6127ab2fdcf268b76c9a33cb08bc276bfbf Mon Sep 17 00:00:00 2001 From: dholland Date: Sun, 30 Mar 2014 05:30:28 +0000 Subject: Remove SHORTLEN and LONGLEN defines; use sizeof() properly instead. Fix two semi-compensating size bugs in wire transmission affecting 64-bit machines. --- hunt/include/hunt_common.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'hunt/include/hunt_common.h') diff --git a/hunt/include/hunt_common.h b/hunt/include/hunt_common.h index a463cf16..704124c9 100644 --- a/hunt/include/hunt_common.h +++ b/hunt/include/hunt_common.h @@ -1,4 +1,4 @@ -/* $NetBSD: hunt_common.h,v 1.3 2014/03/29 21:55:59 dholland Exp $ */ +/* $NetBSD: hunt_common.h,v 1.4 2014/03/30 05:30:28 dholland Exp $ */ /* * Copyright (c) 1983-2003, Regents of the University of California. @@ -85,9 +85,7 @@ #define MAXPL 17 #define MAXMON 0 #endif -#define SHORTLEN 2 /* sizeof (network short) */ -#define LONGLEN 4 /* sizeof (network long) */ -#define NAMELEN 20 +#define WIRE_NAMELEN 20 #define MSGLEN SCREEN_WIDTH #define DECAY 50.0 -- cgit v1.2.3