windows: success fixes
This commit is contained in:
@@ -104,7 +104,7 @@ lazy_static! {
|
|||||||
|
|
||||||
fn make_rw_event(event: &FdEventData, nbytes: Result<u64>) -> types::Event {
|
fn make_rw_event(event: &FdEventData, nbytes: Result<u64>) -> types::Event {
|
||||||
let (nbytes, error) = match nbytes {
|
let (nbytes, error) = match nbytes {
|
||||||
Ok(nbytes) => (nbytes, Error::Success),
|
Ok(nbytes) => (nbytes, types::Errno::Success),
|
||||||
Err(e) => (u64::default(), e),
|
Err(e) => (u64::default(), e),
|
||||||
};
|
};
|
||||||
types::Event {
|
types::Event {
|
||||||
@@ -122,7 +122,7 @@ fn make_timeout_event(timeout: &ClockEventData) -> types::Event {
|
|||||||
types::Event {
|
types::Event {
|
||||||
userdata: timeout.userdata,
|
userdata: timeout.userdata,
|
||||||
type_: types::Eventtype::Clock,
|
type_: types::Eventtype::Clock,
|
||||||
error: Error::Success,
|
error: types::Errno::Success,
|
||||||
fd_readwrite: types::EventFdReadwrite {
|
fd_readwrite: types::EventFdReadwrite {
|
||||||
nbytes: 0,
|
nbytes: 0,
|
||||||
flags: types::Eventrwflags::empty(),
|
flags: types::Eventrwflags::empty(),
|
||||||
|
|||||||
Reference in New Issue
Block a user