svn commit: r405800 - head/graphics/libfpx/files
Mikhail Teterin
mi at FreeBSD.org
Mon Jan 11 19:19:21 UTC 2016
Author: mi
Date: Mon Jan 11 19:19:20 2016
New Revision: 405800
URL: https://svnweb.freebsd.org/changeset/ports/405800
Log:
Replace use of NULL, where actual integer zero is expected -- an ancient
upstream bug coming to light with modern compilers.
This does not change the compiled binaries, so no PORTREVISION bumps.
PR: 186773
Submitted by: Oliver Hartman
Added:
head/graphics/libfpx/files/patch-null-casts (contents, props changed)
Added: head/graphics/libfpx/files/patch-null-casts
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/libfpx/files/patch-null-casts Mon Jan 11 19:19:20 2016 (r405800)
@@ -0,0 +1,23 @@
+--- oless/expdf.cxx 2013-09-02 11:47:00.000000000 -0400
++++ oless/expdf.cxx 2014-02-14 14:29:24.000000000 -0500
+@@ -610,5 +610,5 @@
+ olErr(EH_Err, STG_E_INVALIDFUNCTION);
+ olChk(Validate());
+- if (snbExclude != NULL)
++ if (snbExclude != 0)
+ olErr(EH_Err, STG_E_INVALIDPARAMETER);
+ olChk(OpenEntry(pwcsName, STGTY_STORAGE, grfMode, (void **)&pdfExp));
+@@ -909,5 +909,5 @@
+ sc = OpenStorage(pwcsName, (IStorage*)NULL,
+ STGM_DIRECT| STGM_READ| STGM_SHARE_EXCLUSIVE,
+- (SNBW)NULL, (DWORD)NULL, &pstgsrc);
++ 0, 0, &pstgsrc);
+
+ if (SUCCEEDED(sc))
+@@ -951,5 +951,5 @@
+ olChk(OpenStream(pwcsName, (void *)NULL,
+ STGM_DIRECT | STGM_READ | STGM_SHARE_EXCLUSIVE,
+- (DWORD)NULL, &pstmsrc));
++ 0, &pstmsrc));
+
+ // It's a stream
More information about the svn-ports-head
mailing list