Skip to content

Commit 7f676b8

Browse files
author
Keegan McAllister
committed
Fix some non-FFI-safe types in externs
1 parent 3b5d92c commit 7f676b8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/liblibc/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4542,7 +4542,7 @@ pub mod funcs {
45424542
pub fn glob(pattern: *const c_char,
45434543
flags: c_int,
45444544
errfunc: ::Nullable<extern "C" fn(epath: *const c_char,
4545-
errno: c_int) -> int>,
4545+
errno: c_int) -> c_int>,
45464546
pglob: *mut glob_t);
45474547
pub fn globfree(pglob: *mut glob_t);
45484548
}

src/libtime/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ pub fn tzset() {
229229

230230
/// Holds a calendar date and time broken down into its components (year, month, day, and so on),
231231
/// also called a broken-down time value.
232+
// FIXME: use c_int instead of i32?
233+
#[repr(C)]
232234
#[deriving(Clone, PartialEq, Eq, Show)]
233235
pub struct Tm {
234236
/// Seconds after the minute - [0, 60]

0 commit comments

Comments
 (0)