diff options
author | Daichi GOTO <daichi@FreeBSD.org> | 2003-06-27 03:59:03 +0000 |
---|---|---|
committer | Daichi GOTO <daichi@FreeBSD.org> | 2003-06-27 03:59:03 +0000 |
commit | cd2c175bc39d93404d0bf5f27ef511866cd87314 (patch) | |
tree | e408689c28484be844e7b7b5d6f72b4f97afeb64 /games/quake2forge | |
parent | 96bad4362a9b5dae5146c47e6856151a6169a45a (diff) | |
download | ports-cd2c175bc39d93404d0bf5f27ef511866cd87314.tar.gz ports-cd2c175bc39d93404d0bf5f27ef511866cd87314.zip |
Notes
Diffstat (limited to 'games/quake2forge')
-rw-r--r-- | games/quake2forge/Makefile | 2 | ||||
-rw-r--r-- | games/quake2forge/files/patch-main.c | 18 |
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)); |