1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-04 06:57:47 +00:00

who: use i64 instead of time_t

fixes build on raspberry pi 2 (armv7-unknown-linux-gnueabihf)
This commit is contained in:
Wim Hueskes 2016-09-03 22:18:10 +02:00
parent 783daa5839
commit 4f91662057

View file

@ -12,7 +12,7 @@
#[macro_use]
extern crate uucore;
use uucore::utmpx::{self, time, Utmpx};
use uucore::libc::{STDIN_FILENO, time_t, ttyname, S_IWGRP};
use uucore::libc::{STDIN_FILENO, ttyname, S_IWGRP};
use std::borrow::Cow;
use std::io::prelude::*;
@ -244,7 +244,7 @@ struct Who {
args: Vec<String>,
}
fn idle_string<'a>(when: time_t, boottime: time_t) -> Cow<'a, str> {
fn idle_string<'a>(when: i64, boottime: i64) -> Cow<'a, str> {
thread_local! {
static NOW: time::Tm = time::now()
}