summaryrefslogtreecommitdiffstats
path: root/eloop.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-09-05 11:46:03 +0000
committerRoy Marples <roy@marples.name>2008-09-05 11:46:03 +0000
commit0ce8caf249d3f477eacbcb45cf31322798551b2d (patch)
tree786d1c9b66d04ee02d90df0ba98345bce915354f /eloop.c
parente7eeaf88da7f1512b33847d180288f4158ef6bd4 (diff)
downloaddhcpcd-0ce8caf249d3f477eacbcb45cf31322798551b2d.tar.xz
Mark functions as _noreturn.
Diffstat (limited to 'eloop.c')
-rw-r--r--eloop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eloop.c b/eloop.c
index 981d8eef..7655f5a7 100644
--- a/eloop.c
+++ b/eloop.c
@@ -261,7 +261,7 @@ delete_timeout(void (*callback)(void *), void *arg)
}
}
-void
+_noreturn void
start_eloop(void)
{
int msecs, n;
@@ -326,7 +326,7 @@ start_eloop(void)
get_monotonic(&now);
continue;
}
- logger(LOG_ERR, "poll: %s", strerror(errno));
+ logger(LOG_ERR, "poll: %m");
exit(EXIT_FAILURE);
}