Mercurial > trustbridge
comparison cinst/nss-secitemlist.c @ 493:48d7b956bd98
Change loop order of installation to only call NSS_Initialize once per db
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Thu, 24 Apr 2014 17:04:49 +0000 |
parents | 17e1c8f37d72 |
children | f89b41fa7048 |
comparison
equal
deleted
inserted
replaced
492:dcb014e7d32f | 493:48d7b956bd98 |
---|---|
18 newlelt->item = newitem; | 18 newlelt->item = newitem; |
19 newlelt->next = *list; | 19 newlelt->next = *list; |
20 *list = newlelt; | 20 *list = newlelt; |
21 } | 21 } |
22 | 22 |
23 void | |
24 seciteml_free (seciteml_t **list) | |
25 { | |
26 seciteml_t *oldlelt; | |
27 | |
28 while (*list != NULL) | |
29 { | |
30 oldlelt = *list; | |
31 *list = oldlelt->next; | |
32 free(oldlelt->item); | |
33 free(oldlelt); | |
34 } | |
35 } | |
36 | |
23 SECItem *seciteml_pop (seciteml_t **list) | 37 SECItem *seciteml_pop (seciteml_t **list) |
24 { | 38 { |
25 seciteml_t *oldlelt; | 39 seciteml_t *oldlelt; |
26 SECItem *item = NULL; | 40 SECItem *item = NULL; |
27 | 41 |