--- pgp/src/sleep.c 2018/04/24 16:43:42 1.1.1.1 +++ pgp/src/sleep.c 2018/04/24 16:45:35 1.1.1.2 @@ -1,25 +1,25 @@ -/************* -* sleep.c -- provide unix style sleep function -* -*************/ -#include - -int sleep(unsigned secs){ - long start; - long check; - long finish; - - time(&start); - finish = start + (long) secs; -#ifdef DEBUG - printf ("sleep for %d secs, stop sleeping at %ld\n", secs, finish); - time(&check); - printf ("it is now %ld\n", check ); -#endif - for (;;) { - time(&check); - if (check > finish) - break; - } - return (0); -} +/************* +* sleep.c -- provide unix style sleep function +* +*************/ +#include + +int sleep(unsigned secs){ + long start; + long check; + long finish; + + time(&start); + finish = start + (long) secs; +#ifdef DEBUG + printf ("sleep for %d secs, stop sleeping at %ld\n", secs, finish); + time(&check); + printf ("it is now %ld\n", check ); +#endif + for (;;) { + time(&check); + if (check > finish) + break; + } + return (0); +}