aboutsummaryrefslogtreecommitdiff
path: root/coreutils/who.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/who.c')
-rw-r--r--coreutils/who.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/who.c b/coreutils/who.c
index 95ad21953..7566bfddc 100644
--- a/coreutils/who.c
+++ b/coreutils/who.c
@@ -24,7 +24,7 @@
24static const char * idle_string (time_t t) 24static const char * idle_string (time_t t)
25{ 25{
26 static char str[6]; 26 static char str[6];
27 27
28 time_t s = time(NULL) - t; 28 time_t s = time(NULL) - t;
29 29
30 if (s < 60) 30 if (s < 60)
@@ -43,11 +43,11 @@ int who_main(int argc, char **argv)
43 struct utmp *ut; 43 struct utmp *ut;
44 struct stat st; 44 struct stat st;
45 char *name; 45 char *name;
46 46
47 if (argc > 1) { 47 if (argc > 1) {
48 bb_show_usage(); 48 bb_show_usage();
49 } 49 }
50 50
51 setutent(); 51 setutent();
52 printf("USER TTY IDLE TIME HOST\n"); 52 printf("USER TTY IDLE TIME HOST\n");
53 while ((ut = getutent()) != NULL) { 53 while ((ut = getutent()) != NULL) {