Skip to content

Commit

Permalink
Oops, move this outside the s! block
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed May 1, 2019
1 parent 53591a6 commit 9b43ade
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/unix/notbsd/linux/other/mod.rs
Expand Up @@ -61,19 +61,6 @@ s! {
_align: [usize; 0],
}

impl siginfo_t {
pub unsafe fn si_addr(&self) -> *mut ::c_void {
#[repr(C)]
struct siginfo_sigfault {
_si_signo: ::c_int,
_si_errno: ::c_int,
_si_code: ::c_int,
si_addr: *mut ::c_void
}
(*(self as *const siginfo_t as *const siginfo_sigfault)).si_addr
}
}

pub struct glob64_t {
pub gl_pathc: ::size_t,
pub gl_pathv: *mut *mut ::c_char,
Expand Down Expand Up @@ -213,6 +200,19 @@ s! {
}
}

impl siginfo_t {
pub unsafe fn si_addr(&self) -> *mut ::c_void {
#[repr(C)]
struct siginfo_sigfault {
_si_signo: ::c_int,
_si_errno: ::c_int,
_si_code: ::c_int,
si_addr: *mut ::c_void
}
(*(self as *const siginfo_t as *const siginfo_sigfault)).si_addr
}
}

s_no_extra_traits! {
pub struct utmpx {
pub ut_type: ::c_short,
Expand Down

0 comments on commit 9b43ade

Please sign in to comment.