Mercurial > trustbridge
comparison cinst/nss-secitemlist.c @ 524:a097dd86cb4d
merged.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Tue, 29 Apr 2014 15:26:43 +0200 |
parents | 48d7b956bd98 |
children | f89b41fa7048 |
comparison
equal
deleted
inserted
replaced
523:ca583ffe728a | 524:a097dd86cb4d |
---|---|
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 |