"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/osipparser2/osip_list.c" between
libosip2-5.0.0.tar.gz and libosip2-5.1.0.tar.gz

About: The GNU oSIP library is an implementation of SIP (RFC3261).

osip_list.c  (libosip2-5.0.0):osip_list.c  (libosip2-5.1.0)
skipping to change at line 202 skipping to change at line 202
i++; i++;
ntmp = ntmp->next; ntmp = ntmp->next;
} }
return ntmp->element; return ntmp->element;
} }
/* added by bennewit@cs.tu-berlin.de */ /* added by bennewit@cs.tu-berlin.de */
void * void *
osip_list_get_first (const osip_list_t * li, osip_list_iterator_t * iterator) osip_list_get_first (const osip_list_t * li, osip_list_iterator_t * iterator)
{ {
if (li==NULL || 0 >= li->nb_elt) { if (li == NULL || 0 >= li->nb_elt) {
iterator->actual = 0; iterator->actual = 0;
return OSIP_SUCCESS; return OSIP_SUCCESS;
} }
iterator->actual = li->node; iterator->actual = li->node;
iterator->prev = (__node_t**)&li->node; iterator->prev = (__node_t **) & li->node;
iterator->li = (osip_list_t*)li; iterator->li = (osip_list_t *) li;
iterator->pos = 0; iterator->pos = 0;
return li->node->element; return li->node->element;
} }
/* added by bennewit@cs.tu-berlin.de */ /* added by bennewit@cs.tu-berlin.de */
void * void *
osip_list_get_next (osip_list_iterator_t * iterator) osip_list_get_next (osip_list_iterator_t * iterator)
{ {
if (iterator->actual == NULL) { if (iterator->actual == NULL) {
 End of changes. 2 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)