summaryrefslogtreecommitdiffstats
path: root/eloop.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-02-11 17:56:22 +0000
committerRoy Marples <roy@marples.name>2009-02-11 17:56:22 +0000
commiteab2229cfa459ccbf8178ad4cdba68fbb7ebaf46 (patch)
treeb896daed217eb023e6e5b5d152e9e8a9a0e42169 /eloop.c
parent63170def69524476fd43495ab1767b8690c0e9b5 (diff)
downloaddhcpcd-eab2229cfa459ccbf8178ad4cdba68fbb7ebaf46.tar.xz
Enforce NetBSD KNF style more
Diffstat (limited to 'eloop.c')
-rw-r--r--eloop.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/eloop.c b/eloop.c
index a2432cd3..d03641ca 100644
--- a/eloop.c
+++ b/eloop.c
@@ -109,8 +109,7 @@ delete_event(int fd)
}
void
-add_timeout_tv(const struct timeval *when,
- void (*callback)(void *), void *arg)
+add_timeout_tv(const struct timeval *when, void (*callback)(void *), void *arg)
{
struct timeval w;
struct timeout *t, *tt = NULL;
@@ -169,8 +168,7 @@ add_timeout_tv(const struct timeval *when,
}
void
-add_timeout_sec(time_t when,
- void (*callback)(void *), void *arg)
+add_timeout_sec(time_t when, void (*callback)(void *), void *arg)
{
struct timeval tv;
@@ -183,8 +181,7 @@ add_timeout_sec(time_t when,
* callbacks given. Handy for deleting everything apart from the expire
* timeout. */
void
-delete_timeouts(void *arg,
- void (*callback)(void *), ...)
+delete_timeouts(void *arg, void (*callback)(void *), ...)
{
struct timeout *t, *tt, *last = NULL;
va_list va;
@@ -295,11 +292,11 @@ start_eloop(void)
timersub(&timeouts->when, &now, &tv);
if (tv.tv_sec > INT_MAX / 1000 ||
(tv.tv_sec == INT_MAX / 1000 &&
- (tv.tv_usec + 999) / 1000 > INT_MAX % 1000))
+ (tv.tv_usec + 999) / 1000 > INT_MAX % 1000))
msecs = INT_MAX;
else
msecs = tv.tv_sec * 1000 +
- (tv.tv_usec + 999) / 1000;
+ (tv.tv_usec + 999) / 1000;
} else
/* No timeouts, so wait forever. */
msecs = -1;