]> Zhao Yanbai Git Server - minix.git/commitdiff
Fix some warnings (by Ingmar Alting)
authorBen Gras <ben@minix3.org>
Fri, 10 Nov 2006 18:13:02 +0000 (18:13 +0000)
committerBen Gras <ben@minix3.org>
Fri, 10 Nov 2006 18:13:02 +0000 (18:13 +0000)
lib/sysutil/tickdelay.c

index fcf7707111d7036726caada2461de9f28bc12363..bb74160bbe74fd67bf20006ee641a02ffb3c8c33 100644 (file)
@@ -14,10 +14,9 @@ long ticks;                          /* number of ticks to wait */
  * previous) alarm will also delay the previous alarm.
  */
     message m, m_alarm;
-    clock_t time_left;
     int s;
 
-    if (ticks <= 0) return;            /* check for robustness */
+    if (ticks <= 0) return OK;         /* check for robustness */
 
     m.ALRM_ENDPT = SELF;               /* SELF means this process nr */
     m.ALRM_EXP_TIME = ticks;           /* request message after ticks */