mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
id: remove dead code/unused imports
This commit is contained in:
parent
e0d9347182
commit
aa5293ecfa
1 changed files with 1 additions and 5 deletions
6
id/id.rs
6
id/id.rs
|
@ -21,14 +21,12 @@ extern crate libc;
|
||||||
use std::os;
|
use std::os;
|
||||||
use std::ptr::read;
|
use std::ptr::read;
|
||||||
use libc::{
|
use libc::{
|
||||||
c_char,
|
|
||||||
c_int,
|
c_int,
|
||||||
gid_t,
|
|
||||||
uid_t,
|
uid_t,
|
||||||
getgid,
|
getgid,
|
||||||
getuid
|
getuid
|
||||||
};
|
};
|
||||||
use libc::funcs::posix88::unistd::{getegid, geteuid, getgroups, getlogin};
|
use libc::funcs::posix88::unistd::{getegid, geteuid, getlogin};
|
||||||
use std::str::raw::from_c_str;
|
use std::str::raw::from_c_str;
|
||||||
use getopts::{getopts, optflag, usage};
|
use getopts::{getopts, optflag, usage};
|
||||||
use c_types::{
|
use c_types::{
|
||||||
|
@ -309,8 +307,6 @@ fn pline(possible_pw: Option<c_passwd>) {
|
||||||
pw_shell);
|
pw_shell);
|
||||||
}
|
}
|
||||||
|
|
||||||
static NGROUPS: i32 = 20;
|
|
||||||
|
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
fn auditid() { }
|
fn auditid() { }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue