Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jan 2016 19:19:20 +0000 (UTC)
From:      Mikhail Teterin <mi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r405800 - head/graphics/libfpx/files
Message-ID:  <201601111919.u0BJJKX5063558@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601111919.u0BJJKX5063558>