From c82c8cced23256ebeeea978fda67abd976280425 Mon Sep 17 00:00:00 2001 From: Valerii Hiora Date: Fri, 2 Jan 2015 13:23:36 +0200 Subject: Track rust master - Updated array syntax - task_rng -> thread_rng --- src/sys/signal.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/sys/signal.rs') 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 -- cgit v1.2.3