diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2016-05-23 17:27:41 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2016-05-23 17:27:41 +0000 |
commit | 5e7b69a0022564bc798c9f751f147459cbd43fd3 (patch) | |
tree | 5d7b747db5c5540f2d6781f4612c89f4229bcd10 /security/tpm-tools | |
parent | c0b5fd211ef7e4ff6ea4a39a94ab7919b963348b (diff) | |
download | ports-5e7b69a0022564bc798c9f751f147459cbd43fd3.tar.gz ports-5e7b69a0022564bc798c9f751f147459cbd43fd3.zip |
Fix a build error when using gcc5.
PR: 209714
Notes
Notes:
svn path=/head/; revision=415731
Diffstat (limited to 'security/tpm-tools')
-rw-r--r-- | security/tpm-tools/files/patch-src-tpm_mgmt-tpm_nvcommon.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/security/tpm-tools/files/patch-src-tpm_mgmt-tpm_nvcommon.c b/security/tpm-tools/files/patch-src-tpm_mgmt-tpm_nvcommon.c new file mode 100644 index 000000000000..9b4026ebff50 --- /dev/null +++ b/security/tpm-tools/files/patch-src-tpm_mgmt-tpm_nvcommon.c @@ -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); |