Changeset 1103:d8591b1c56cd in freeDiameter for libfdproto/fifo.c
- Timestamp:
- May 10, 2013, 7:48:57 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdproto/fifo.c
r1093 r1103 412 412 CHECK_MALLOC_DO( new = malloc (sizeof (struct fifo_item)) , { 413 413 pthread_mutex_unlock( &queue->mtx ); 414 return ENOMEM; 414 415 } ); 415 416 … … 470 471 ASSERT( ! FD_IS_LIST_EMPTY(&queue->list) ); 471 472 472 fi = (struct fifo_item *)queue->list.next; 473 fi = (struct fifo_item *)(queue->list.next); 474 ret = fi->item.o; 473 475 fd_list_unlink(&fi->item); 474 476 queue->count--; 475 477 queue->total_items++; 476 ret = fi->item.o;477 478 478 479 /* Update the timings */ … … 598 599 return EPIPE; 599 600 } 600 601 601 602 if (queue->count > 0) { 602 603 /* There are items in the queue, so pick the first one */
Note: See TracChangeset
for help on using the changeset viewer.