diff options
author | John Crispin <blogic@openwrt.org> | 2015-03-28 18:12:21 +0100 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2015-03-30 14:14:22 +0200 |
commit | 73a7133b6e42edc218da5b8011c580ed48c7731a (patch) | |
tree | 71bf65b4c602e14fd8c17ff2ff94db9d394c2b19 /src/odhcpd.c | |
parent | 3b4e6d19b7ce0953efcd6d1c545b031b73e0ab6e (diff) |
properly handle return codes
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'src/odhcpd.c')
-rw-r--r-- | src/odhcpd.c | 4 |
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); } |