Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Jun 2017 13:39:17 +0000 (UTC)
From:      MANTANI Nobutaka <nobutaka@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r443388 - head/security/md5deep/files
Message-ID:  <201706111339.v5BDdHLn004732@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nobutaka
Date: Sun Jun 11 13:39:17 2017
New Revision: 443388
URL: https://svnweb.freebsd.org/changeset/ports/443388

Log:
  Fix build error with clang 4.

Added:
  head/security/md5deep/files/
  head/security/md5deep/files/patch-src_hash.cpp   (contents, props changed)

Added: head/security/md5deep/files/patch-src_hash.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/md5deep/files/patch-src_hash.cpp	Sun Jun 11 13:39:17 2017	(r443388)
@@ -0,0 +1,11 @@
+--- src/hash.cpp.orig	2014-01-29 18:40:39 UTC
++++ src/hash.cpp
+@@ -279,7 +279,7 @@ void file_data_hasher_t::hash()
+ 		MAP_FILE|
+ #endif
+ 		MAP_SHARED,fd,0);
+-	    if(fdht->base>0){		
++	    if(fdht->base != nullptr){		
+ 		/* mmap is successful, so set the bounds.
+ 		 * if it is not successful, we default to reading the fd
+ 		 */



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