Usage and error strings were wrong
This commit is contained in:
parent
4654b72291
commit
393ef41b69
|
@ -1,5 +1,5 @@
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
/* Copyright (c) 2006 The DeforaOS Project */
|
/* Copyright (c) 2007 The DeforaOS Project */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@ typedef int Prefs;
|
||||||
/* who */
|
/* who */
|
||||||
static int _who_error(char const * message, int ret);
|
static int _who_error(char const * message, int ret);
|
||||||
static char * _who_tty(void);
|
static char * _who_tty(void);
|
||||||
|
|
||||||
static int _who(Prefs * prefs)
|
static int _who(Prefs * prefs)
|
||||||
{
|
{
|
||||||
struct utmpx * u;
|
struct utmpx * u;
|
||||||
|
@ -51,7 +52,7 @@ static int _who(Prefs * prefs)
|
||||||
|
|
||||||
static int _who_error(char const * message, int ret)
|
static int _who_error(char const * message, int ret)
|
||||||
{
|
{
|
||||||
fputs("ttyname: ", stderr);
|
fputs("who: ", stderr);
|
||||||
perror(message);
|
perror(message);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -74,7 +75,7 @@ static char * _who_tty(void)
|
||||||
/* usage */
|
/* usage */
|
||||||
static int _usage(void)
|
static int _usage(void)
|
||||||
{
|
{
|
||||||
fputs("Usage: who\n", stderr);
|
fputs("Usage: who [-mT]\n", stderr);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user