[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH] lib/ukswrand: Fix compilation warnings



These are remnants of commit 2c29345c.

Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
---
 lib/ukswrand/dev.c | 3 +--
 lib/ukswrand/mwc.c | 1 +
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/ukswrand/dev.c b/lib/ukswrand/dev.c
index fe232942..40a14268 100644
--- a/lib/ukswrand/dev.c
+++ b/lib/ukswrand/dev.c
@@ -49,9 +49,8 @@
 int dev_random_read(struct device *dev __unused, struct uio *uio,
                        int flags __unused)
 {
-       size_t count, step, chunk_size, i;
+       size_t count;
        char *buf;
-       __u32 rd;
 
        buf = uio->uio_iov->iov_base;
        count = uio->uio_iov->iov_len;
diff --git a/lib/ukswrand/mwc.c b/lib/ukswrand/mwc.c
index 427d7f92..85abf0c6 100644
--- a/lib/ukswrand/mwc.c
+++ b/lib/ukswrand/mwc.c
@@ -33,6 +33,7 @@
  * THIS HEADER MAY NOT BE EXTRACTED OR MODIFIED IN ANY WAY.
  */
 
+#include <string.h>
 #include <uk/swrand.h>
 #include <uk/print.h>
 #include <uk/assert.h>
-- 
2.20.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.