You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: logenv.rs
    path of file: ./repos/rustybox/libbb
    
    the code of the file until where you have to start completion: use crate::librb::smallint;
use libc;
use libc::getenv;
use libc::strcmp;
extern "C" {

  #[no_mangle]
  static mut logmode: smallint;
}

pub type C2RustUnnamed = libc::
    
pub unsafe fn bb_logenv_override() {
  let mut mode: *const libc::c_char = getenv(b"LOGGING\x00" as *const u8 as *const libc::c_char);
  if mode.is_null() {
    return;
  }
  if strcmp(mode, b"none\x00" as *const u8 as *const libc::c_char) == 0 {
    logmode = LOGMODE_NONE as libc::c_int as smallint
  } else if strcmp(mode, b"syslog\x00" as *const u8 as *const libc::c_char) == 0 {
    logmode = LOGMODE_SYSLOG as libc::c_int as smallint
  };
}