diff options
author | Wan-Teh Chang <wtc@google.com> | 2014-06-05 18:04:06 -0700 |
---|---|---|
committer | Wan-Teh Chang <wtc@google.com> | 2014-06-05 18:04:06 -0700 |
commit | 2d63b9b65053e69c69453b533d2e8b5faa16b516 (patch) | |
tree | 31a20910b23fc42429641028c2a383771602d4e8 /lib | |
parent | 06250dcc37e837980ceb5de6c8396179d5a54aec (diff) | |
download | nss-hg-2d63b9b65053e69c69453b533d2e8b5faa16b516.tar.gz |
Bug 952572: Fix compiler warnings in getNameExtensionsBuiltIn that are
treated as errors by -Werror,-Wpointer-sign. r=ryan.sleevi.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/certdb/genname.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/certdb/genname.c b/lib/certdb/genname.c index 412a9d2c6..1b0cc9704 100644 --- a/lib/certdb/genname.c +++ b/lib/certdb/genname.c @@ -1611,9 +1611,9 @@ getNameExtensionsBuiltIn(CERTCertificate *cert, "\x73\x67\x64\x6E\x2E\x70\x6D\x2E\x67\x6F\x75" "\x76\x2E\x66\x72"; - const SECItem anssi_subject = {0, (char *) rawANSSISubject, + const SECItem anssi_subject = {0, (unsigned char *) rawANSSISubject, sizeof(rawANSSISubject)-1}; - const SECItem permitFranceGovNC = {0, (char *) constraintFranceGov, + const SECItem permitFranceGovNC = {0, (unsigned char *) constraintFranceGov, sizeof(constraintFranceGov)-1}; if (SECITEM_ItemsAreEqual(&cert->derSubject, &anssi_subject)) { |