that this function is first run. */
static const char *
-idle_string (when)
- time_t when;
+idle_string (time_t when)
{
static time_t now = 0;
static char idle[10];
/* Display a line of information about entry THIS. */
static void
-print_entry (this)
- STRUCT_UTMP *this;
+print_entry (struct utmp *this)
{
struct stat stats;
time_t last_change;
in `utmp_contents', which should have N elements. */
static void
-list_entries_who (n)
- int n;
+list_entries_who (int n)
{
register STRUCT_UTMP *this = utmp_contents;
int entries;
#ifdef USERS
static int
-userid_compare (v_a, v_b)
- const void *v_a;
- const void *v_b;
+userid_compare (const void *v_a, const void *v_b)
{
char **a = (char **) v_a;
char **b = (char **) v_b;
}
static void
-list_entries_users (n)
- int n;
+list_entries_users (int n)
{
register STRUCT_UTMP *this = utmp_contents;
char **u;
#ifdef WHO
static void
-print_heading ()
+print_heading (void)
{
printf ("%-8s ", "USER");
if (include_mesg)
/* Display `utmp_contents', which should have N entries. */
static void
-scan_entries (n)
- int n;
+scan_entries (int n)
{
register STRUCT_UTMP *this = utmp_contents;
number of entries it contains. */
static int
-read_utmp (filename)
- char *filename;
+read_utmp (char *filename)
{
FILE *utmp;
struct stat file_stats;
/* Display a list of who is on the system, according to utmp file FILENAME. */
static void
-who (filename)
- char *filename;
+who (char *filename)
{
int users;
is no matching entry. */
static STRUCT_UTMP *
-search_entries (n, line)
- int n;
- char *line;
+search_entries (int n, char *line)
{
register STRUCT_UTMP *this = utmp_contents;
or nothing if there is no entry for it. */
static void
-who_am_i (filename)
- char *filename;
+who_am_i (char *filename)
{
register STRUCT_UTMP *utmp_entry;
char hostname[MAXHOSTNAMELEN + 1];
}
static void
-usage (status)
- int status;
+usage (int status)
{
if (status != 0)
fprintf (stderr, _("Try `%s --help' for more information.\n"),
#ifdef USERS
static void
-usage (status)
- int status;
+usage (int status)
{
if (status != 0)
fprintf (stderr, _("Try `%s --help' for more information.\n"),
#endif /* USERS */
void
-main (argc, argv)
- int argc;
- char **argv;
+main (int argc, char **argv)
{
int optc, longind;
#ifdef WHO