diff options
author | Wan-Teh Chang <wtc@google.com> | 2014-05-20 15:05:46 -0700 |
---|---|---|
committer | Wan-Teh Chang <wtc@google.com> | 2014-05-20 15:05:46 -0700 |
commit | 7fcccfc34c48d97a1c0fce54be030618a5eeed9d (patch) | |
tree | 6441312ec084caa96dc34c7f85a5fbc7651f9934 | |
parent | 21a41e8ba68acf9b565d8f3e646fa05998631b30 (diff) | |
download | nss-hg-7fcccfc34c48d97a1c0fce54be030618a5eeed9d.tar.gz |
Bug 1011090: Fix signed/unsigned comparison warnings inNSS_3_16_2_BETA2
lib/softoken/legacydb. r=briansmith.
-rw-r--r-- | lib/softoken/legacydb/lgattr.c | 6 | ||||
-rw-r--r-- | lib/softoken/legacydb/lgutil.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/softoken/legacydb/lgattr.c b/lib/softoken/legacydb/lgattr.c index fbe6c319d..00a0a746d 100644 --- a/lib/softoken/legacydb/lgattr.c +++ b/lib/softoken/legacydb/lgattr.c @@ -1372,7 +1372,7 @@ lg_GetAttributeValue(SDB *sdb, CK_OBJECT_HANDLE handle, CK_ATTRIBUTE *templ, { LGObjectCache *obj = lg_NewObjectCache(sdb, NULL, handle & ~LG_TOKEN_MASK); CK_RV crv, crvCollect = CKR_OK; - int i; + unsigned int i; if (obj == NULL) { return CKR_OBJECT_HANDLE_INVALID; @@ -1434,7 +1434,7 @@ lg_tokenMatch(SDB *sdb, const SECItem *dbKey, CK_OBJECT_HANDLE class, { PRBool match = PR_TRUE; LGObjectCache *obj = lg_NewObjectCache(sdb, dbKey, class); - int i; + unsigned int i; if (obj == NULL) { return PR_FALSE; @@ -1758,7 +1758,7 @@ lg_SetAttributeValue(SDB *sdb, CK_OBJECT_HANDLE handle, LGObjectCache *obj = lg_NewObjectCache(sdb, NULL, handle & ~LG_TOKEN_MASK); CK_RV crv, crvCollect = CKR_OK; PRBool writePrivate = PR_FALSE; - int i; + unsigned int i; if (obj == NULL) { return CKR_OBJECT_HANDLE_INVALID; diff --git a/lib/softoken/legacydb/lgutil.c b/lib/softoken/legacydb/lgutil.c index 1b9600f05..88e46d6e4 100644 --- a/lib/softoken/legacydb/lgutil.c +++ b/lib/softoken/legacydb/lgutil.c @@ -18,7 +18,7 @@ const CK_ATTRIBUTE * lg_FindAttribute(CK_ATTRIBUTE_TYPE type, const CK_ATTRIBUTE *templ, CK_ULONG count ) { - int i; + unsigned int i; for (i=0; i < count; i++) { if (templ[i].type == type) { |