summaryrefslogtreecommitdiff
path: root/src/who.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-09-25 02:25:20 +0000
committerJim Meyering <jim@meyering.net>1994-09-25 02:25:20 +0000
commit4bac19f0bff5d16d226b4e6b7fd6b17a3f036d6e (patch)
tree70a9bc31304563e5a9eb209951e0dd632b6257ff /src/who.c
parentc09c5906165965293606321728370a6c3c8f6aac (diff)
downloadcoreutils-4bac19f0bff5d16d226b4e6b7fd6b17a3f036d6e.tar.xz
.
Diffstat (limited to 'src/who.c')
-rw-r--r--src/who.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/who.c b/src/who.c
index 50eaa378c..69216698c 100644
--- a/src/who.c
+++ b/src/who.c
@@ -102,7 +102,7 @@ int gethostname ();
static int read_utmp ();
#ifdef WHO
-static char *idle_string ();
+static const char *idle_string ();
static STRUCT_UTMP *search_entries ();
static void print_entry ();
static void print_heading ();
@@ -525,7 +525,7 @@ who_am_i (filename)
/* Return a string representing the time between WHEN and the time
that this function is first run. */
-static char *
+static const char *
idle_string (when)
time_t when;
{
@@ -544,7 +544,7 @@ idle_string (when)
sprintf (idle, "%02d:%02d",
(int) (seconds_idle / (60 * 60)),
(int) ((seconds_idle % (60 * 60)) / 60));
- return idle;
+ return (const char *) idle;
}
return " old ";
}