diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-10-11 22:37:38 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-10-11 22:37:38 +0000 |
commit | 8f6b7b5122519871f9287bc50a014704f5c2b220 (patch) | |
tree | a438bb27ef81e5bfe36ea9e74687ce5c7c76836c /cpukit/posix/src/alarm.c | |
parent | 2009-10-11 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-8f6b7b5122519871f9287bc50a014704f5c2b220.tar.bz2 |
2009-10-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/src/alarm.c: If 0 seconds do not insert timer.
* rtems/src/regionextend.c: Eliminate warning. Use default else.
Diffstat (limited to 'cpukit/posix/src/alarm.c')
-rw-r--r-- | cpukit/posix/src/alarm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/posix/src/alarm.c b/cpukit/posix/src/alarm.c index 266df94283..eb15b98e80 100644 --- a/cpukit/posix/src/alarm.c +++ b/cpukit/posix/src/alarm.c @@ -71,7 +71,8 @@ unsigned int alarm( } } - _Watchdog_Insert_seconds( the_timer, seconds ); + if ( seconds ) + _Watchdog_Insert_seconds( the_timer, seconds ); return remaining; } |