Skip to content

Commit 2568aed

Browse files
committed
glib: Mark unix_open_pipe as unsafe
1 parent f6e4f2b commit 2568aed

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
@@ -223,7 +223,7 @@ pub fn charset() -> (bool, Option<&'static GStr>) {
223223

224224
#[cfg(unix)]
225225
#[doc(alias = "g_unix_open_pipe")]
226-
pub fn unix_open_pipe(flags: i32) -> Result<(RawFd, RawFd), Error> {
226+
pub unsafe fn unix_open_pipe(flags: i32) -> Result<(RawFd, RawFd), Error> {
227227
unsafe {
228228
let mut fds = [0, 2];
229229
let mut error = ptr::null_mut();

0 commit comments

Comments
 (0)