summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-03-29 21:42:37 +0000
committerMiles Bader <miles@gnu.org>1996-03-29 21:42:37 +0000
commit5124f30322b3bd9066cc1d098cd1e60c50eaaa24 (patch)
tree7995e26d4882b0e58763e53796eaceffd5132b25 /utils
parent2afc417b2a006879489123d08332edcc70734130 (diff)
(psout): Use real types instead of old ps typedefs.
Diffstat (limited to 'utils')
-rw-r--r--utils/psout.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/utils/psout.c b/utils/psout.c
index 46a1dd27..4df0d67d 100644
--- a/utils/psout.c
+++ b/utils/psout.c
@@ -1,6 +1,6 @@
/* Common output function for ps & w
- Copyright (C) 1995 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.ai.mit.edu>
@@ -27,14 +27,15 @@
#include <ps.h>
void
-psout (struct proc_stat_list *procs, char *fmt_string, ps_fmt_specs_t specs,
+psout (struct proc_stat_list *procs,
+ char *fmt_string, struct ps_fmt_specs *specs,
char *sort_key_name, int sort_reverse,
int output_width, int print_heading,
int squash_bogus_fields, int squash_nominal_fields)
{
error_t err;
- ps_stream_t output;
- ps_fmt_t fmt;
+ struct ps_stream *output;
+ struct ps_fmt *fmt;
err = ps_fmt_create (fmt_string, specs, &fmt);
if (err)
@@ -56,7 +57,7 @@ psout (struct proc_stat_list *procs, char *fmt_string, ps_fmt_specs_t specs,
if (squash_nominal_fields)
/* Remove any fields that contain only `uninteresting' information. */
{
- bool nominal (ps_fmt_spec_t spec)
+ int nominal (struct ps_fmt_spec *spec)
{
return proc_stat_list_spec_nominal (procs, spec);
}
@@ -66,7 +67,7 @@ psout (struct proc_stat_list *procs, char *fmt_string, ps_fmt_specs_t specs,
if (sort_key_name)
/* Sort on the given field. */
{
- ps_fmt_spec_t sort_key;
+ struct ps_fmt_spec *sort_key;
if (*sort_key_name == '-')
/* Sort in reverse. */