snore

sleep with feedback
git clone git://git.bitsmanent.org/snore
Log | Files | Refs | README | LICENSE

commit a156a190c5277a05887fbe33cfcb03eddfe450ea
parent 1470f1d255d9f393039b38513d2938553b274911
Author: Paride Legovini <pl@ninthfloor.org>
Date:   Mon, 10 Jul 2017 12:24:08 +0200

Homogenize indentation (convert spaces to tabs)

Diffstat:
Msnore.c | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/snore.c b/snore.c @@ -44,14 +44,14 @@ die(const char *errstr, ...) { int sleepu(double usec) { - struct timespec req, rem; - int r; + struct timespec req, rem; + int r; - req.tv_sec = 0; - req.tv_nsec = usec * 1000; - while((r = nanosleep(&req, &rem)) == -1 && errno == EINTR) - req = rem; - return r; + req.tv_sec = 0; + req.tv_nsec = usec * 1000; + while((r = nanosleep(&req, &rem)) == -1 && errno == EINTR) + req = rem; + return r; } double