summaryrefslogtreecommitdiff
path: root/src/sys/event.rs
diff options
context:
space:
mode:
authorRick Richardson <rick.richardson@gmail.com>2015-01-10 14:20:21 -0500
committerCarl Lerche <me@carllerche.com>2015-01-13 11:31:41 -0800
commit380d4020f10583797fe7bab6fe95923934660605 (patch)
tree3d0b302f900acd1bf1e5e5a6303c21311d24f2fe /src/sys/event.rs
parentf70a60e0b4dd670171a12fa98101ffc52f528eec (diff)
downloadnix-380d4020f10583797fe7bab6fe95923934660605.zip
changed uint and int to usize and isize respectively
Diffstat (limited to 'src/sys/event.rs')
-rw-r--r--src/sys/event.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sys/event.rs b/src/sys/event.rs
index 09c94f77..1b96feb9 100644
--- a/src/sys/event.rs
+++ b/src/sys/event.rs
@@ -20,7 +20,7 @@ mod ffi {
pub flags: EventFlag, // 2
pub fflags: FilterFlag, // 4
pub data: intptr_t, // 8
- pub udata: uint // 8
+ pub udata: usize // 8
}
// Bug in rustc, cannot determine that kevent is #[repr(C)]
@@ -171,7 +171,7 @@ pub fn kqueue() -> SysResult<Fd> {
pub fn kevent(kq: Fd,
changelist: &[KEvent],
eventlist: &mut [KEvent],
- timeout_ms: uint) -> SysResult<uint> {
+ timeout_ms: usize) -> SysResult<usize> {
// Convert ms to timespec
let timeout = timespec {
@@ -193,16 +193,16 @@ pub fn kevent(kq: Fd,
return Err(SysError::last());
}
- return Ok(res as uint)
+ return Ok(res as usize)
}
#[inline]
pub fn ev_set(ev: &mut KEvent,
- ident: uint,
+ ident: usize,
filter: EventFilter,
flags: EventFlag,
fflags: FilterFlag,
- udata: uint) {
+ udata: usize) {
ev.ident = ident as uintptr_t;
ev.filter = filter;