* Fix a bad cast in hunt that caused it to refuse to run on amd64 and likely

also other 64 bit architectures. Closes: #342025
This commit is contained in:
Joey Hess
2007-12-22 22:44:52 -05:00
parent 27002d3a9e
commit 7733def078
2 changed files with 9 additions and 2 deletions

View File

@@ -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 */
}