Changeset 1059:a1d6e1980132 in freeDiameter for libfdproto
- Timestamp:
- May 10, 2013, 10:50:09 AM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdproto/fifo.c
r974 r1059 489 489 static int fifo_tget ( struct fifo * queue, void ** item, int istimed, const struct timespec *abstime) 490 490 { 491 int timedout = 0;492 491 int call_cb = 0; 492 int ret = 0; 493 493 494 494 /* Check the parameters */ … … 515 515 call_cb = test_l_cb(queue); 516 516 } else { 517 int ret = 0;518 517 /* We have to wait for a new item */ 519 518 queue->thrs++ ; … … 529 528 goto awaken; /* test for spurious wake-ups */ 530 529 531 if (istimed && (ret == ETIMEDOUT)) { 532 timedout = 1; 533 } else { 534 /* Unexpected error condition (means we need to debug) */ 535 ASSERT( ret == 0 /* never true */ ); 536 } 530 /* otherwise (ETIMEDOUT / other error) just continue */ 537 531 } 538 532 … … 545 539 546 540 /* Done */ 547 return timedout ? ETIMEDOUT : 0;541 return ret; 548 542 } 549 543
Note: See TracChangeset
for help on using the changeset viewer.