From 048daee8b9f5d109ab04a80bbf3c730180e2913b Mon Sep 17 00:00:00 2001 From: Knight Date: Tue, 26 Jul 2016 13:41:59 +0800 Subject: [PATCH] pinky: make ci happy --- src/pinky/pinky.rs | 6 +++--- src/pinky/utmp.rs | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/pinky/pinky.rs b/src/pinky/pinky.rs index ee175a0a4..6295b00ae 100644 --- a/src/pinky/pinky.rs +++ b/src/pinky/pinky.rs @@ -256,7 +256,7 @@ impl UtmpUtils for utmpx::c_utmp { fn idle_string(when: i64) -> String { thread_local! { - static NOW: time::Tm = time::now(); + static NOW: time::Tm = time::now() } NOW.with(|n| { let duration = n.to_timespec().sec - when; @@ -293,7 +293,7 @@ impl Pinky { let last_change; match pts_path.metadata() { Ok(meta) => { - mesg = if meta.mode() & S_IWGRP != 0 { + mesg = if meta.mode() & (S_IWGRP as u32) != 0 { ' ' } else { '*' @@ -366,7 +366,7 @@ impl Pinky { self.print_heading(); } else { // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ - // FIXME: WIERD!!! If the following line is removed, + // FIXME: WEIRD!!! If the following line is removed, // getpwnam() will return NULL. // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ print!(""); diff --git a/src/pinky/utmp.rs b/src/pinky/utmp.rs index 653b50a7a..93f32bfff 100644 --- a/src/pinky/utmp.rs +++ b/src/pinky/utmp.rs @@ -1,3 +1,10 @@ +// This file is part of the uutils coreutils package. +// +// (c) Jian Zeng +// +// For the full copyright and license information, please view the LICENSE +// file that was distributed with this source code. +// extern crate uucore; use uucore::utmpx::c_utmp;