Skip to content

Commit 7e80981

Browse files
committed
#7752: use fcnptr for glob errfunc.
1 parent e5fdc7d commit 7e80981

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libstd/libc.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -3224,14 +3224,13 @@ pub mod funcs {
32243224
#[nolink]
32253225
#[abi = "cdecl"]
32263226
pub mod glob {
3227-
use libc::types::common::c95::{c_void};
32283227
use libc::types::os::arch::c95::{c_char, c_int};
32293228
use libc::types::os::common::posix01::{glob_t};
32303229

32313230
extern {
32323231
pub fn glob(pattern: *c_char,
32333232
flags: c_int,
3234-
errfunc: *c_void, // XXX callback
3233+
errfunc: extern "C" fn(epath: *c_char, errno: int) -> int,
32353234
pglob: *mut glob_t);
32363235
pub fn globfree(pglob: *mut glob_t);
32373236
}

0 commit comments

Comments
 (0)