summarylogtreecommitdiffstats
path: root/bad-ntohl-cast.diff
diff options
context:
space:
mode:
authorAntiCompositeNumber2020-11-06 19:40:23 -0500
committerAntiCompositeNumber2020-11-06 19:40:23 -0500
commit0aa880cc237f716ff8b0e68ea5211d0fe1a776ae (patch)
tree4d4ac5ee1a21dc1aae27c61a52cf21a273cfa091 /bad-ntohl-cast.diff
downloadaur-0aa880cc237f716ff8b0e68ea5211d0fe1a776ae.tar.gz
Rescue bsd-games 2.17
Diffstat (limited to 'bad-ntohl-cast.diff')
-rw-r--r--bad-ntohl-cast.diff22
1 files changed, 22 insertions, 0 deletions
diff --git a/bad-ntohl-cast.diff b/bad-ntohl-cast.diff
new file mode 100644
index 000000000000..f783813e95ae
--- /dev/null
+++ b/bad-ntohl-cast.diff
@@ -0,0 +1,22 @@
+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 */
+ }