svn commit: r415731 - head/security/tpm-tools/files

Hiroki Sato hrs at FreeBSD.org
Mon May 23 17:27:42 UTC 2016


Author: hrs
Date: Mon May 23 17:27:41 2016
New Revision: 415731
URL: https://svnweb.freebsd.org/changeset/ports/415731

Log:
  Fix a build error when using gcc5.
  
  PR:	209714

Added:
  head/security/tpm-tools/files/patch-src-tpm_mgmt-tpm_nvcommon.c   (contents, props changed)

Added: head/security/tpm-tools/files/patch-src-tpm_mgmt-tpm_nvcommon.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/tpm-tools/files/patch-src-tpm_mgmt-tpm_nvcommon.c	Mon May 23 17:27:41 2016	(r415731)
@@ -0,0 +1,24 @@
+--- src/tpm_mgmt/tpm_nvcommon.c.orig	2011-08-17 12:20:35 UTC
++++ src/tpm_mgmt/tpm_nvcommon.c
+@@ -140,8 +140,8 @@ int parseStringWithValues(const char *aA
+ 						 aArg);
+ 					return -1;
+ 				}
+-				if (!aArg[offset+numbytes] == '|' &&
+-				    !aArg[offset+numbytes] == 0) {
++				if (aArg[offset+numbytes] != '|' &&
++				    aArg[offset+numbytes] != 0) {
+ 					logError(_("Illegal character following "
+                                                    "hexadecimal number in %s\n"),
+ 						 aArg + offset);
+@@ -164,8 +164,8 @@ int parseStringWithValues(const char *aA
+ 				return -1;
+ 			}
+ 
+-			if (!aArg[offset+numbytes] == '|' &&
+-			    !aArg[offset+numbytes] == 0) {
++			if (aArg[offset+numbytes] != '|' &&
++			    aArg[offset+numbytes] != 0) {
+ 				logError(_("Illegal character following decimal "
+ 				           "number in %s\n"),
+ 					 aArg + offset);


More information about the svn-ports-all mailing list