summaryrefslogtreecommitdiff
path: root/src/iopause.c
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-09 15:50:21 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-09 15:50:21 +0200
commit795ffc5e62e8ba383575dbcd9943a580d4bd3358 (patch)
treec128889056202b255e2f22afeb7717894d350862 /src/iopause.c
parent5fadc0cbb8577c61d66bd6f19ceaf0507c11e23b (diff)
formatting changes
Manual format adjustments. Comment adjustments. Remove usage of the register keyword.
Diffstat (limited to 'src/iopause.c')
-rw-r--r--src/iopause.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/iopause.c b/src/iopause.c
index 0baad2a..9c160ac 100644
--- a/src/iopause.c
+++ b/src/iopause.c
@@ -6,10 +6,10 @@
#include "taia.h"
/**
- @file iopause.c
- @author djb
- @source qmail
- @brief stateful reading from net
+ @file iopause.c
+ @author djb
+ @source qmail
+ @brief stateful reading from net
@return > 0 if successful
*/
@@ -20,9 +20,9 @@ int iopause(iopause_fd *x, unsigned int len, struct taia *deadline, struct taia
double d;
int i, r;
- if (taia_less(deadline, stamp))
+ if (taia_less(deadline, stamp)) {
millisecs = 0;
- else {
+ } else {
t = *stamp;
taia_sub(&t, deadline, &t);
d = taia_approx(&t);