Skip to content

Commit 8e4aee4

Browse files
committed
Change memset_s signature to standard C types
Use the standard C type equivalent to the C11 annex K types
1 parent e0adeab commit 8e4aee4

File tree

1 file changed

+1
-1
lines changed
  • src/unix/bsd/freebsdlike

1 file changed

+1
-1
lines changed

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1598,7 +1598,7 @@ extern "C" {
15981598
// Added in `DragonFly BSD` 5.4
15991599
pub fn explicit_bzero(s: *mut ::c_void, len: ::size_t);
16001600
// ISO/IEC 9899:2011 ("ISO C11") K.3.7.4.1
1601-
pub fn memset_s(s: *mut ::c_void, smax: ::rsize_t, c: ::c_int, n: ::rsize_t) -> ::errno_t;
1601+
pub fn memset_s(s: *mut ::c_void, smax: ::size_t, c: ::c_int, n: ::size_t) -> ::c_int;
16021602
}
16031603

16041604
#[link(name = "rt")]

0 commit comments

Comments
 (0)