svn commit: r443388 - head/security/md5deep/files

MANTANI Nobutaka nobutaka at FreeBSD.org
Sun Jun 11 13:39:19 UTC 2017


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
+ 		 */


More information about the svn-ports-all mailing list