summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/alarm.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-10-11 22:37:38 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-10-11 22:37:38 +0000
commit8f6b7b5122519871f9287bc50a014704f5c2b220 (patch)
treea438bb27ef81e5bfe36ea9e74687ce5c7c76836c /cpukit/posix/src/alarm.c
parent2009-10-11 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-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.c3
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;
}