Skip to content

Commit

Permalink
glib: Mark unix_open_pipe as unsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
A6GibKm committed Jan 26, 2024
1 parent d490c3a commit 4835b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glib/src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ pub fn charset() -> (bool, Option<&'static GStr>) {

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

0 comments on commit 4835b1a

Please sign in to comment.