pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/games/pinball/patches
Module Name: pkgsrc
Committed By: nia
Date: Fri Feb 19 14:54:56 UTC 2021
Added Files:
pkgsrc/games/pinball/patches: patch-src_Obj3dsUtil.cpp
Log Message:
pinball: Add missing patch
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/games/pinball/patches/patch-src_Obj3dsUtil.cpp
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/games/pinball/patches/patch-src_Obj3dsUtil.cpp
diff -u /dev/null pkgsrc/games/pinball/patches/patch-src_Obj3dsUtil.cpp:1.1
--- /dev/null Fri Feb 19 14:54:56 2021
+++ pkgsrc/games/pinball/patches/patch-src_Obj3dsUtil.cpp Fri Feb 19 14:54:56 2021
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_Obj3dsUtil.cpp,v 1.1 2021/02/19 14:54:56 nia Exp $
+
+Don't cast FILE * to int.
+
+--- src/Obj3dsUtil.cpp.orig 2020-12-18 16:34:55.000000000 +0000
++++ src/Obj3dsUtil.cpp
+@@ -570,7 +570,7 @@ extern "C" {
+ unsigned int i=0; FILE* f=0;
+
+ f=fopen( filename, "wt");
+- if ( ! f ) return (int) f;
++ if ( ! f ) return 0;
+ for(i=0; i < in->no; i++) {
+ t = fprintObject( f, & (in->vo[i]) );
+ }
+@@ -585,7 +585,7 @@ extern "C" {
+ FILE* f=0;
+ //debugf("+saveObject %s\n",filename);
+ f=fopen( filename, "wt");
+- if ( ! f ) return (int) f;
++ if ( ! f ) return 0;
+ t = fprintObject( f, o);
+ fclose(f);
+ //debug("-saveObject");
Home |
Main Index |
Thread Index |
Old Index