summaryrefslogtreecommitdiff
path: root/utils/ps.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1998-07-20 06:56:48 +0000
committerRoland McGrath <roland@gnu.org>1998-07-20 06:56:48 +0000
commit904537365266ddea9e45dcef10080f42fabd4dbe (patch)
tree9d970387fb913454db0917c5a56eed70096b948a /utils/ps.c
parent9e193425ea6e3161f0a752a3075622209ac70880 (diff)
1998-07-20 Roland McGrath <roland@baalperazim.frob.com>
* ps.c (main): Fix return type to int, and use return. * ids.c (main): Likewise. * w.c (main): Likewise. * login.c (main): Likewise. * settrans.c (main): Likewise. * showtrans.c (main): Likewise. * fsysopts.c (main): Likewise. * storeinfo.c (main): Likewise.
Diffstat (limited to 'utils/ps.c')
-rw-r--r--utils/ps.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/ps.c b/utils/ps.c
index ae6eeec6..3953350c 100644
--- a/utils/ps.c
+++ b/utils/ps.c
@@ -1,6 +1,6 @@
/* Show process information.
- Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.ai.mit.edu>
@@ -94,14 +94,14 @@ static const struct argp_option options[] =
{"tail", 0, 0, OPTION_ALIAS},
{"width", 'w', "WIDTH",OA, "If WIDTH is given, try to format the"
" output for WIDTH columns, otherwise,"
- " remove the default limit"},
+ " remove the default limit"},
{0, 0}
};
static const char doc[] =
"Show information about processes PID... (default all `interesting' processes)"
"\vThe USER, LID, PID, PGRP, and SID arguments may also be comma separated"
-" lists. The System V options -u and -g may be accessed with -O and -G.";
+" lists. The System V options -u and -g may be accessed with -O and -G.";
#define FILTER_OWNER 0x01
#define FILTER_NOT_LEADER 0x02
@@ -162,7 +162,7 @@ lookup_user (const char *name, struct argp_state *state)
return pw->pw_uid;
}
-void
+int
main(int argc, char *argv[])
{
error_t err;
@@ -189,7 +189,7 @@ main(int argc, char *argv[])
pid_t *pids = 0; /* User-specified pids. */
size_t num_pids = 0;
struct pids_argp_params pids_argp_params = { &pids, &num_pids, 1 };
-
+
/* Add a user who's processes should be printed out. */
error_t add_uid (uid_t uid, struct argp_state *state)
{
@@ -438,5 +438,5 @@ main(int argc, char *argv[])
output_width, print_heading,
squash_bogus_fields, squash_nominal_fields, top);
- exit (0);
+ return 0;
}