summaryrefslogtreecommitdiff
path: root/src/sys/signal.rs
diff options
context:
space:
mode:
authorValerii Hiora <valerii.hiora@gmail.com>2015-01-02 13:23:36 +0200
committerValerii Hiora <valerii.hiora@gmail.com>2015-01-02 13:23:36 +0200
commitc82c8cced23256ebeeea978fda67abd976280425 (patch)
tree3e3af67b97ca1240522903f2e153361e5e5919d8 /src/sys/signal.rs
parent5bb9518aa029fc24da3fa71103d320919f2dd60c (diff)
downloadnix-c82c8cced23256ebeeea978fda67abd976280425.zip
Track rust master
- Updated array syntax - task_rng -> thread_rng
Diffstat (limited to 'src/sys/signal.rs')
-rw-r--r--src/sys/signal.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sys/signal.rs b/src/sys/signal.rs
index f08e2617..771255c3 100644
--- a/src/sys/signal.rs
+++ b/src/sys/signal.rs
@@ -118,14 +118,14 @@ pub mod signal {
#[cfg(target_word_size = "32")]
#[deriving(Copy)]
pub struct sigset_t {
- __val: [libc::c_ulong, ..32],
+ __val: [libc::c_ulong; 32],
}
#[repr(C)]
#[cfg(target_word_size = "64")]
#[deriving(Copy)]
pub struct sigset_t {
- __val: [libc::c_ulong, ..16],
+ __val: [libc::c_ulong; 16],
}
}
@@ -188,12 +188,12 @@ pub mod signal {
pub sa_handler: extern fn(libc::c_int),
pub sa_mask: sigset_t,
sa_restorer: *mut libc::c_void,
- sa_resv: [libc::c_int, ..1],
+ sa_resv: [libc::c_int; 1],
}
#[repr(C)]
pub struct sigset_t {
- __val: [libc::c_ulong, ..32],
+ __val: [libc::c_ulong; 32],
}
}
@@ -242,7 +242,7 @@ pub mod signal {
#[cfg(any(target_os = "freebsd", target_os = "dragonfly"))]
#[repr(C)]
pub struct sigset_t {
- bits: [u32, ..4],
+ bits: [u32; 4],
}
// This structure has more fields, but we're not all that interested in