diff options
author | Jim Meyering <jim@meyering.net> | 1997-03-18 23:34:23 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-03-18 23:34:23 +0000 |
commit | 3f2ded808df696cff236f6469d7ded8c23f623fa (patch) | |
tree | 5ec9bda5d9b26c8f6fccbd1c4e1e6d43303c3a24 /src | |
parent | bcdeccb6a3a4dc46f7edd4aa2f63d7f34593ff50 (diff) | |
download | coreutils-3f2ded808df696cff236f6469d7ded8c23f623fa.tar.xz |
(idle_string): Rename local, IDLE, to avoid shadowing global.
Diffstat (limited to 'src')
-rw-r--r-- | src/who-users.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/who-users.c b/src/who-users.c index da841a3ca..d6748d66e 100644 --- a/src/who-users.c +++ b/src/who-users.c @@ -275,7 +275,7 @@ static const char * idle_string (time_t when) { static time_t now = 0; - static char idle[10]; + static char idle_hhmm[10]; time_t seconds_idle; if (now == 0) @@ -286,10 +286,10 @@ idle_string (time_t when) return " . "; if (seconds_idle < (24 * 60 * 60)) /* One day. */ { - sprintf (idle, "%02d:%02d", + sprintf (idle_hhmm, "%02d:%02d", (int) (seconds_idle / (60 * 60)), (int) ((seconds_idle % (60 * 60)) / 60)); - return (const char *) idle; + return (const char *) idle_hhmm; } return _(" old "); } |