1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

Fix 'extern blocks must be unsafe'

This commit is contained in:
Sylvestre Ledru 2025-03-08 14:41:40 +01:00
parent 2739c19330
commit 95b2de78e1
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ cpp! {{
} }
}} }}
extern "C" { unsafe extern "C" {
fn __stdbuf_get_stdin() -> *mut FILE; fn __stdbuf_get_stdin() -> *mut FILE;
fn __stdbuf_get_stdout() -> *mut FILE; fn __stdbuf_get_stdout() -> *mut FILE;
fn __stdbuf_get_stderr() -> *mut FILE; fn __stdbuf_get_stderr() -> *mut FILE;

View file

@ -45,7 +45,7 @@ use std::io::Result as IOResult;
use std::ptr; use std::ptr;
use std::sync::{LazyLock, Mutex}; use std::sync::{LazyLock, Mutex};
extern "C" { unsafe extern "C" {
/// From: `<https://man7.org/linux/man-pages/man3/getgrouplist.3.html>` /// From: `<https://man7.org/linux/man-pages/man3/getgrouplist.3.html>`
/// > The getgrouplist() function scans the group database to obtain /// > The getgrouplist() function scans the group database to obtain
/// > the list of groups that user belongs to. /// > the list of groups that user belongs to.