From 8f6b7b5122519871f9287bc50a014704f5c2b220 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sun, 11 Oct 2009 22:37:38 +0000 Subject: 2009-10-11 Joel Sherrill * posix/src/alarm.c: If 0 seconds do not insert timer. * rtems/src/regionextend.c: Eliminate warning. Use default else. --- cpukit/posix/src/alarm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpukit/posix/src/alarm.c') 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; } -- cgit v1.2.3