Commit 34cfe146 authored by jD91mZM2's avatar jD91mZM2

Fix compilation

parent a7eb42fb
......@@ -7,6 +7,7 @@ extern crate rand;
use std::fs::File;
use std::io::{Read, Write};
use std::os::unix::io::AsRawFd;
use rand::chacha::ChaChaRng;
use rand::Rng;
......@@ -68,7 +69,7 @@ impl SchemeMut for RandScheme {
}
fn fevent(&mut self, id: usize, _flags: usize) -> Result<usize> {
self.socket.write(&syscall::Packet {
syscall::write(self.socket.as_raw_fd(), &syscall::Packet {
a: syscall::SYS_FEVENT,
b: id,
c: syscall::EVENT_READ,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment