summaryrefslogtreecommitdiffhomepage
path: root/src/odhcpd.c
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-03-28 18:12:21 +0100
committerSteven Barth <steven@midlink.org>2015-03-30 14:14:22 +0200
commit73a7133b6e42edc218da5b8011c580ed48c7731a (patch)
tree71bf65b4c602e14fd8c17ff2ff94db9d394c2b19 /src/odhcpd.c
parent3b4e6d19b7ce0953efcd6d1c545b031b73e0ab6e (diff)
properly handle return codes
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'src/odhcpd.c')
-rw-r--r--src/odhcpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/odhcpd.c b/src/odhcpd.c
index 76dee9e..52bca13 100644
--- a/src/odhcpd.c
+++ b/src/odhcpd.c
@@ -415,9 +415,9 @@ void odhcpd_process(struct odhcpd_event *event)
odhcpd_receive_packets(&event->uloop, 0);
}
-void odhcpd_urandom(void *data, size_t len)
+int odhcpd_urandom(void *data, size_t len)
{
- read(urandom_fd, data, len);
+ return read(urandom_fd, data, len);
}