Changeset 9f114a8 in rtems
- Timestamp:
- 05/20/05 19:33:23 (19 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 182813e
- Parents:
- 862cbe3a
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/ChangeLog
r862cbe3a r9f114a8 1 2005-05-20 Sergei Organov <osv@topconrd.ru> 2 3 PR 750/networking 4 * libnetworking/pppd/sys-rtems.c: Avoid NULL dereference in 5 wait_input(). 6 1 7 2005-05-17 Jennifer Averett <jennifer.averett@oarcorp.com> 2 8 -
c/src/libnetworking/pppd/sys-rtems.c
r862cbe3a r9f114a8 514 514 struct timeval *timo; 515 515 { 516 rtems_interval ticks;517 516 rtems_event_set events; 518 519 ticks = ((timo->tv_sec*1000000)+timo->tv_usec)/rtems_bsdnet_microseconds_per_tick; 520 if ( ticks > 0 ) { 521 rtems_event_receive(RTEMS_EVENT_31, (RTEMS_EVENT_ANY|RTEMS_WAIT), ticks, &events); 517 rtems_interval ticks = 0; 518 rtems_option wait = RTEMS_WAIT; 519 520 if(timo) { 521 if(timo->tv_sec == 0 && timo->tv_usec == 0) 522 wait = RTEMS_NO_WAIT; 523 else { 524 ticks = (timo->tv_sec * 1000000 + timo->tv_usec) / 525 rtems_bsdnet_microseconds_per_tick; 526 if(ticks <= 0) 527 ticks = 1; 528 } 522 529 } 530 rtems_event_receive(RTEMS_EVENT_31, RTEMS_EVENT_ANY | wait, ticks, &events); 523 531 } 524 532 -
cpukit/pppd/sys-rtems.c
r862cbe3a r9f114a8 514 514 struct timeval *timo; 515 515 { 516 rtems_interval ticks;517 516 rtems_event_set events; 518 519 ticks = ((timo->tv_sec*1000000)+timo->tv_usec)/rtems_bsdnet_microseconds_per_tick; 520 if ( ticks > 0 ) { 521 rtems_event_receive(RTEMS_EVENT_31, (RTEMS_EVENT_ANY|RTEMS_WAIT), ticks, &events); 517 rtems_interval ticks = 0; 518 rtems_option wait = RTEMS_WAIT; 519 520 if(timo) { 521 if(timo->tv_sec == 0 && timo->tv_usec == 0) 522 wait = RTEMS_NO_WAIT; 523 else { 524 ticks = (timo->tv_sec * 1000000 + timo->tv_usec) / 525 rtems_bsdnet_microseconds_per_tick; 526 if(ticks <= 0) 527 ticks = 1; 528 } 522 529 } 530 rtems_event_receive(RTEMS_EVENT_31, RTEMS_EVENT_ANY | wait, ticks, &events); 523 531 } 524 532
Note: See TracChangeset
for help on using the changeset viewer.