aboutsummaryrefslogtreecommitdiff
path: root/games/quake2forge
diff options
context:
space:
mode:
authorDaichi GOTO <daichi@FreeBSD.org>2003-06-27 03:59:03 +0000
committerDaichi GOTO <daichi@FreeBSD.org>2003-06-27 03:59:03 +0000
commitcd2c175bc39d93404d0bf5f27ef511866cd87314 (patch)
treee408689c28484be844e7b7b5d6f72b4f97afeb64 /games/quake2forge
parent96bad4362a9b5dae5146c47e6856151a6169a45a (diff)
downloadports-cd2c175bc39d93404d0bf5f27ef511866cd87314.tar.gz
ports-cd2c175bc39d93404d0bf5f27ef511866cd87314.zip
Notes
Diffstat (limited to 'games/quake2forge')
-rw-r--r--games/quake2forge/Makefile2
-rw-r--r--games/quake2forge/files/patch-main.c18
2 files changed, 19 insertions, 1 deletions
diff --git a/games/quake2forge/Makefile b/games/quake2forge/Makefile
index fbadebcd9fe8..b89f7136c137 100644
--- a/games/quake2forge/Makefile
+++ b/games/quake2forge/Makefile
@@ -89,6 +89,6 @@ do-install:
.endif
post-install:
- @${CAT} ${PKGMESSAGE} | ${SED} -e 's#$${PREFIX}#${PREFIX}#g'
+ @${SED} -e 's#$${PREFIX}#${PREFIX}#g' ${PKGMESSAGE}
.include <bsd.port.post.mk>
diff --git a/games/quake2forge/files/patch-main.c b/games/quake2forge/files/patch-main.c
index 8979f8a45349..78718d143537 100644
--- a/games/quake2forge/files/patch-main.c
+++ b/games/quake2forge/files/patch-main.c
@@ -22,3 +22,21 @@
#endif
#include "qcommon.h"
+@@ -518,7 +527,7 @@
+ ret = fread(ptr, size, nitems, fp);
+ err = errno;
+ if (ret != nitems) {
+- printf("verify_fread(...,%d,%d,...): return value: %d\n", size, nitems, ret);
++ printf("verify_fread(...,%zu,%zu,...): return value: %zu\n", size, nitems, ret);
+ if (ret == 0 && ferror(fp)) {
+ printf(" error: %s\n", strerror(err));
+ printf(" fileno=%d\n", fileno(fp));
+@@ -536,7 +545,7 @@
+ ret = fwrite(ptr, size, nitems, fp);
+ err = errno;
+ if (ret != nitems) {
+- printf("verify_fwrite(...,%d,%d,...) = %d\n", size, nitems, ret);
++ printf("verify_fwrite(...,%zu,%zu,...) = %zu\n", size, nitems, ret);
+ if (ret == 0 && ferror(fp)) {
+ printf(" error: %s\n", strerror(err));
+ printf(" fileno=%d\n", fileno(fp));