[BACK]Return to nap.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / games / larn

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/games/larn/nap.c between version 1.4 and 1.5

version 1.4, 1995/04/27 22:15:28 version 1.5, 1997/10/18 20:03:36
Line 1 
Line 1 
 #ifndef lint  /*      $NetBSD$        */
 static char rcsid[] = "$NetBSD$";  
 #endif /* not lint */  
   
 /* nap.c                 Larn is copyrighted 1986 by Noah Morgan. */  /* nap.c                 Larn is copyrighted 1986 by Noah Morgan. */
 #include <signal.h>  #include <sys/cdefs.h>
 #include <sys/types.h>  #ifndef lint
   __RCSID("$NetBSD$");
   #endif                          /* not lint */
   
   #include <unistd.h>
   #include "header.h"
   #include "extern.h"
   
 /*  /*
  *      routine to take a nap for n milliseconds   *      routine to take a nap for n milliseconds
  */   */
   void
 nap(x)  nap(x)
         register int x;          int    x;
         {  {
         if (x<=0) return; /* eliminate chance for infinite loop */          if (x <= 0)
                   return;         /* eliminate chance for infinite loop */
         lflush();          lflush();
         usleep(x*1000);          usleep(x * 1000);
         }  }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

CVSweb <webmaster@jp.NetBSD.org>