Skip to content

Commit 4e66a7e

Browse files
committed
glib: Mark unix_open_pipe as unsafe
1 parent e94afa1 commit 4e66a7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

glib/src/functions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ pub fn compute_checksum_for_string(
241241

242242
#[cfg(unix)]
243243
#[doc(alias = "g_unix_open_pipe")]
244-
pub fn unix_open_pipe(flags: i32) -> Result<(RawFd, RawFd), Error> {
244+
pub unsafe fn unix_open_pipe(flags: i32) -> Result<(RawFd, RawFd), Error> {
245245
unsafe {
246246
let mut fds = [0, 2];
247247
let mut error = ptr::null_mut();

0 commit comments

Comments
 (0)