From 7733def07815b016d2703eab9e494bb39a715bd1 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 22 Dec 2007 22:44:52 -0500 Subject: [PATCH] * Fix a bad cast in hunt that caused it to refuse to run on amd64 and likely also other 64 bit architectures. Closes: #342025 --- debian/changelog | 7 +++++++ hunt/hunt/playit.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index ab6ffaa..ef1f75d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +bsdgames (2.17-12) UNRELEASED; urgency=low + + * Fix a bad cast in hunt that caused it to refuse to run on amd64 and likely + also other 64 bit architectures. Closes: #342025 + + -- Joey Hess Sat, 22 Dec 2007 22:43:54 -0500 + bsdgames (2.17-11) unstable; urgency=low * gcc 4.3 duplicate function parameter name fixes. Closes: #455662 diff --git a/hunt/hunt/playit.c b/hunt/hunt/playit.c index 9acf86e..881a4e7 100644 --- a/hunt/hunt/playit.c +++ b/hunt/hunt/playit.c @@ -114,7 +114,7 @@ playit() bad_con(); /* NOTREACHED */ } - if (ntohl(version) != (unsigned long)HUNT_VERSION) { + if (ntohl(version) != (uint32_t)HUNT_VERSION) { bad_ver(); /* NOTREACHED */ } @@ -649,7 +649,7 @@ do_message() bad_con(); /* NOTREACHED */ } - if (ntohl(version) != (unsigned long)HUNT_VERSION) { + if (ntohl(version) != (uint32_t)HUNT_VERSION) { bad_ver(); /* NOTREACHED */ }