Fix compilation

This commit is contained in:
jD91mZM2
2018-08-29 17:59:03 +02:00
parent a7eb42fbeb
commit 34cfe146de
+2 -1
View File
@@ -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,