Received: by mail.netbsd.org (Postfix, from userid 605) id B7B2B84D7E; Fri, 19 Feb 2021 14:54:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id F2BE484CFD for ; Fri, 19 Feb 2021 14:54:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id HNjKzvSjcbAx for ; Fri, 19 Feb 2021 14:54:56 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 5435684C86 for ; Fri, 19 Feb 2021 14:54:56 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 4DF93FA95; Fri, 19 Feb 2021 14:54:56 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1613746496130250" MIME-Version: 1.0 Date: Fri, 19 Feb 2021 14:54:56 +0000 From: "Nia Alarie" Subject: CVS commit: pkgsrc/games/pinball/patches To: pkgsrc-changes@NetBSD.org Reply-To: nia@netbsd.org X-Mailer: log_accum Message-Id: <20210219145456.4DF93FA95@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1613746496130250 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" 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. --_----------=_1613746496130250 Content-Disposition: inline Content-Length: 1000 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii 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"); --_----------=_1613746496130250--