Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Unified Diff: nss/mozilla/security/nss/lib/util/secitem.c

Issue 10540165: Update NSS to NSS 3.13.5 (from NSS 3.13.3). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: nss/mozilla/security/nss/lib/util/secitem.c
===================================================================
--- nss/mozilla/security/nss/lib/util/secitem.c (revision 142244)
+++ nss/mozilla/security/nss/lib/util/secitem.c (working copy)
@@ -37,7 +37,7 @@
/*
* Support routines for SECItem data structure.
*
- * $Id: secitem.c,v 1.16 2011/07/22 21:22:40 wtc%google.com Exp $
+ * $Id: secitem.c,v 1.17 2012/03/23 03:12:16 wtc%google.com Exp $
*/
#include "seccomon.h"
@@ -153,7 +153,7 @@
SECITEM_CompareItem(const SECItem *a, const SECItem *b)
{
unsigned m;
- SECComparison rv;
+ int rv;
if (a == b)
return SECEqual;
@@ -164,9 +164,9 @@
m = ( ( a->len < b->len ) ? a->len : b->len );
- rv = (SECComparison) PORT_Memcmp(a->data, b->data, m);
+ rv = PORT_Memcmp(a->data, b->data, m);
if (rv) {
- return rv;
+ return rv < 0 ? SECLessThan : SECGreaterThan;
}
if (a->len < b->len) {
return SECLessThan;

Powered by Google App Engine
This is Rietveld 408576698