summaryrefslogtreecommitdiff
path: root/src/odhcp6c.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/odhcp6c.c')
-rw-r--r--src/odhcp6c.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/odhcp6c.c b/src/odhcp6c.c
index 8b5cb54..dce1e0e 100644
--- a/src/odhcp6c.c
+++ b/src/odhcp6c.c
@@ -445,7 +445,7 @@ static int usage(void)
" -e Write logmessages to stderr\n"
" -v Increase logging verbosity\n"
" -h Show this help\n\n";
- write(STDERR_FILENO, buf, sizeof(buf));
+ fputs(buf, stderr);
return 1;
}
@@ -654,9 +654,9 @@ uint32_t odhcp6c_elapsed(void)
}
-void odhcp6c_random(void *buf, size_t len)
+int odhcp6c_random(void *buf, size_t len)
{
- read(urandom_fd, buf, len);
+ return read(urandom_fd, buf, len);
}
bool odhcp6c_is_bound(void)