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

Side by Side Diff: nss/lib/base/list.c

Issue 1504923011: Update NSS to 3.21 RTM and NSPR to 4.11 RTM (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/nss
Patch Set: Created 5 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* This Source Code Form is subject to the terms of the Mozilla Public 1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 4
5 /* 5 /*
6 * list.c 6 * list.c
7 * 7 *
8 * This contains the implementation of NSS's thread-safe linked list. 8 * This contains the implementation of NSS's thread-safe linked list.
9 */ 9 */
10 10
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 } else { 210 } else {
211 list->head = node; 211 list->head = node;
212 } 212 }
213 ++list->count; 213 ++list->count;
214 return PR_SUCCESS; 214 return PR_SUCCESS;
215 } 215 }
216 216
217 NSS_IMPLEMENT PRStatus 217 NSS_IMPLEMENT PRStatus
218 nssList_Add(nssList *list, void *data) 218 nssList_Add(nssList *list, void *data)
219 { 219 {
220 PRStatus nssrv;
221 NSSLIST_LOCK_IF(list); 220 NSSLIST_LOCK_IF(list);
222 nssrv = nsslist_add_element(list, data); 221 (void)nsslist_add_element(list, data);
223 NSSLIST_UNLOCK_IF(list); 222 NSSLIST_UNLOCK_IF(list);
224 return PR_SUCCESS; 223 return PR_SUCCESS;
225 } 224 }
226 225
227 NSS_IMPLEMENT PRStatus 226 NSS_IMPLEMENT PRStatus
228 nssList_AddUnique(nssList *list, void *data) 227 nssList_AddUnique(nssList *list, void *data)
229 { 228 {
230 PRStatus nssrv; 229 PRStatus nssrv;
231 nssListElement *node; 230 nssListElement *node;
232 NSSLIST_LOCK_IF(list); 231 NSSLIST_LOCK_IF(list);
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 return node->data; 391 return node->data;
393 } 392 }
394 393
395 NSS_IMPLEMENT PRStatus 394 NSS_IMPLEMENT PRStatus
396 nssListIterator_Finish(nssListIterator *iter) 395 nssListIterator_Finish(nssListIterator *iter)
397 { 396 {
398 iter->current = iter->list->head; 397 iter->current = iter->list->head;
399 return (iter->lock) ? PZ_Unlock(iter->lock) : PR_SUCCESS; 398 return (iter->lock) ? PZ_Unlock(iter->lock) : PR_SUCCESS;
400 } 399 }
401 400
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698