pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/games/xfrisk
Module Name: pkgsrc
Committed By: dholland
Date: Sat Jan 3 04:08:45 UTC 2026
Modified Files:
pkgsrc/games/xfrisk: distinfo
Added Files:
pkgsrc/games/xfrisk/patches: patch-aiClientMain.c patch-aiStubs.c
Log Message:
games/xfrisk: fix build with gcc14
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/games/xfrisk/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/games/xfrisk/patches/patch-aiClientMain.c \
pkgsrc/games/xfrisk/patches/patch-aiStubs.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/games/xfrisk/distinfo
diff -u pkgsrc/games/xfrisk/distinfo:1.14 pkgsrc/games/xfrisk/distinfo:1.15
--- pkgsrc/games/xfrisk/distinfo:1.14 Tue Oct 26 10:44:32 2021
+++ pkgsrc/games/xfrisk/distinfo Sat Jan 3 04:08:45 2026
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.14 2021/10/26 10:44:32 nia Exp $
+$NetBSD: distinfo,v 1.15 2026/01/03 04:08:45 dholland Exp $
BLAKE2s (xfrisk-1.2.tar.gz) = 9786ce9a06e97653de8fbf8df163ce8e2c68d25267328aca021afc3d0c83b55e
SHA512 (xfrisk-1.2.tar.gz) = fb27bd86e20ae0a4b90fd403da37ff4aa253bc801f6ff82cbfde3af1134a10f204cfec2e21127e1825981ac4e38ac5a50955a18510e3cd93b602c3a205357223
@@ -8,5 +8,7 @@ SHA1 (patch-ab) = 8c458f0fa7db8e2a032f59
SHA1 (patch-ac) = ed2194b764c3d78eedabceb9136814cffcb8f25f
SHA1 (patch-ad) = abd57e121edccbf1f3f78d8f124fbc198722dfcd
SHA1 (patch-ae) = 173820eabda55fce02fedae4be2d853ba7d5b31f
+SHA1 (patch-aiClientMain.c) = fad654de66af1916ededdf36557920c0e542db19
+SHA1 (patch-aiStubs.c) = 579e54b4d52da71ffaf26a198074aa3c2c5639e1
SHA1 (patch-gui_c) = 7317a10b1883a5f230c5dd8e3be89d10598d4fb4
SHA1 (patch-utils_c) = 83c56baeb506dc9ca26b6ccc9279fee9e881f41f
Added files:
Index: pkgsrc/games/xfrisk/patches/patch-aiClientMain.c
diff -u /dev/null pkgsrc/games/xfrisk/patches/patch-aiClientMain.c:1.1
--- /dev/null Sat Jan 3 04:08:45 2026
+++ pkgsrc/games/xfrisk/patches/patch-aiClientMain.c Sat Jan 3 04:08:45 2026
@@ -0,0 +1,24 @@
+$NetBSD: patch-aiClientMain.c,v 1.1 2026/01/03 04:08:45 dholland Exp $
+
+Silence pointer cast warnings.
+
+--- aiClientMain.c~ 1999-11-27 18:19:33.000000000 +0000
++++ aiClientMain.c
+@@ -349,7 +349,7 @@ void AI_Start(Int32 argc, CString *argv)
+ RISK_SetAllocationStateOfSpecies(i, ALLOC_COMPLETE);
+
+ /* Let the player do one-time initializations */
+- __AI_Callback(NULL, AI_INIT_ONCE, (void *)iSpeciesID);
++ __AI_Callback(NULL, AI_INIT_ONCE, (void *)(intptr_t)iSpeciesID);
+ }
+
+
+@@ -496,7 +496,7 @@ void CBK_IncomingMessage(Int32 iMessType
+ {
+ fGameInitialized = TRUE;
+ /* Let the player do initializations of game */
+- __AI_Callback(NULL, AI_INIT_GAME, (void *)iSpeciesID);
++ __AI_Callback(NULL, AI_INIT_GAME, (void *)(intptr_t)iSpeciesID);
+ }
+
+ /* Check to see if it's this client. */
Index: pkgsrc/games/xfrisk/patches/patch-aiStubs.c
diff -u /dev/null pkgsrc/games/xfrisk/patches/patch-aiStubs.c:1.1
--- /dev/null Sat Jan 3 04:08:45 2026
+++ pkgsrc/games/xfrisk/patches/patch-aiStubs.c Sat Jan 3 04:08:45 2026
@@ -0,0 +1,14 @@
+$NetBSD: patch-aiStubs.c,v 1.1 2026/01/03 04:08:45 dholland Exp $
+
+Use standard headers.
+
+--- aiStubs.c~ 1999-11-13 21:58:30.000000000 +0000
++++ aiStubs.c
+@@ -20,6 +20,7 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
+
+ #include "riskgame.h"
+ #include "game.h"
Home |
Main Index |
Thread Index |
Old Index