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 Jul 2, 2023
1 parent a40998e commit 5b7be50
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 @@ -223,7 +223,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 5b7be50

Please sign in to comment.