Skip to content

Commit

Permalink
Fix some non-FFI-safe types in externs
Browse files Browse the repository at this point in the history
  • Loading branch information
Keegan McAllister committed Sep 4, 2014
1 parent 3b5d92c commit 7f676b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/liblibc/lib.rs
Expand Up @@ -4542,7 +4542,7 @@ pub mod funcs {
pub fn glob(pattern: *const c_char,
flags: c_int,
errfunc: ::Nullable<extern "C" fn(epath: *const c_char,
errno: c_int) -> int>,
errno: c_int) -> c_int>,
pglob: *mut glob_t);
pub fn globfree(pglob: *mut glob_t);
}
Expand Down
2 changes: 2 additions & 0 deletions src/libtime/lib.rs
Expand Up @@ -229,6 +229,8 @@ pub fn tzset() {

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

0 comments on commit 7f676b8

Please sign in to comment.