summaryrefslogtreecommitdiffstats
path: root/hunt/include/hunt_common.h
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2014-03-30 05:30:28 +0000
committerdholland <dholland@NetBSD.org>2014-03-30 05:30:28 +0000
commit4ddaf6127ab2fdcf268b76c9a33cb08bc276bfbf (patch)
treec5e563bc63ca82d2116ea9fce3f896dae11ad51f /hunt/include/hunt_common.h
parentf0f60ae760a0274a50d65666e97a141a29287a8f (diff)
downloadbsdgames-darwin-4ddaf6127ab2fdcf268b76c9a33cb08bc276bfbf.tar.gz
bsdgames-darwin-4ddaf6127ab2fdcf268b76c9a33cb08bc276bfbf.zip
Remove SHORTLEN and LONGLEN defines; use sizeof() properly instead.
Fix two semi-compensating size bugs in wire transmission affecting 64-bit machines.
Diffstat (limited to 'hunt/include/hunt_common.h')
-rw-r--r--hunt/include/hunt_common.h6
1 files changed, 2 insertions, 4 deletions
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