diff options
author | Jim Meyering <jim@meyering.net> | 1994-09-25 02:25:20 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1994-09-25 02:25:20 +0000 |
commit | 4bac19f0bff5d16d226b4e6b7fd6b17a3f036d6e (patch) | |
tree | 70a9bc31304563e5a9eb209951e0dd632b6257ff /src/who.c | |
parent | c09c5906165965293606321728370a6c3c8f6aac (diff) | |
download | coreutils-4bac19f0bff5d16d226b4e6b7fd6b17a3f036d6e.tar.xz |
.
Diffstat (limited to 'src/who.c')
-rw-r--r-- | src/who.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 "; } |