mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
Fix 'extern blocks must be unsafe'
This commit is contained in:
@@ -26,7 +26,7 @@ cpp! {{
|
||||
}
|
||||
}}
|
||||
|
||||
extern "C" {
|
||||
unsafe extern "C" {
|
||||
fn __stdbuf_get_stdin() -> *mut FILE;
|
||||
fn __stdbuf_get_stdout() -> *mut FILE;
|
||||
fn __stdbuf_get_stderr() -> *mut FILE;
|
||||
|
||||
@@ -45,7 +45,7 @@ use std::io::Result as IOResult;
|
||||
use std::ptr;
|
||||
use std::sync::{LazyLock, Mutex};
|
||||
|
||||
extern "C" {
|
||||
unsafe extern "C" {
|
||||
/// From: `<https://man7.org/linux/man-pages/man3/getgrouplist.3.html>`
|
||||
/// > The getgrouplist() function scans the group database to obtain
|
||||
/// > the list of groups that user belongs to.
|
||||
|
||||
Reference in New Issue
Block a user