From 8d2f8e89c7b4ed479c72000e54bc23621e665699 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 14 Aug 2013 09:03:48 +0200 Subject: musl libc compat updates --- package/cfgfs/src/sys_linux.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'package/cfgfs/src/sys_linux.c') diff --git a/package/cfgfs/src/sys_linux.c b/package/cfgfs/src/sys_linux.c index 38283a44d..af730dd42 100644 --- a/package/cfgfs/src/sys_linux.c +++ b/package/cfgfs/src/sys_linux.c @@ -23,6 +23,7 @@ #include #include +#include #include #include #include @@ -30,8 +31,6 @@ #include "defs.h" #include "sysdeps.h" -__RCSID("$MirOS: contrib/hosted/fwcf/sys_linux.c,v 1.3 2006/09/26 10:25:03 tg Exp $"); - void pull_rndata(uint8_t *buf, size_t n) { @@ -42,7 +41,7 @@ pull_rndata(uint8_t *buf, size_t n) return; } if ((size_t)read(fd, buf, n) != n) - warn("Cannot read %lu bytes from /dev/urandom", (u_long)n); + warn("Cannot read %lu bytes from /dev/urandom", (unsigned long)n); close(fd); } @@ -56,6 +55,6 @@ push_rndata(uint8_t *buf, size_t n) return; } if ((size_t)write(fd, buf, n) != n) - warn("Cannot write %lu bytes to /dev/urandom", (u_long)n); + warn("Cannot write %lu bytes to /dev/urandom", (unsigned long)n); close(fd); } -- cgit v1.2.3