summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-05-07 00:40:30 +0000
committerMiles Bader <miles@gnu.org>1996-05-07 00:40:30 +0000
commit64f3c2f771261231ece5812a9f380c2242c41c1f (patch)
treefab46082ad07258ba178d558d256118badb38d6b
parentdde08334b482c4a7721b86c7a5bcc2bdce685e1b (diff)
Add some const decls.
-rw-r--r--libps/proclist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libps/proclist.c b/libps/proclist.c
index c92f8b69..3e44eeac 100644
--- a/libps/proclist.c
+++ b/libps/proclist.c
@@ -494,7 +494,7 @@ proc_stat_list_sort1 (struct proc_stat_list *pp,
returned. Otherwise, 0 is returned. */
error_t
proc_stat_list_sort (struct proc_stat_list *pp,
- struct ps_fmt_spec *key, int reverse)
+ const struct ps_fmt_spec *key, int reverse)
{
int (*cmp_fn)() = ps_fmt_spec_compare_fn (key);
if (cmp_fn == NULL)
@@ -645,10 +645,10 @@ proc_stat_list_for_each (struct proc_stat_list *pp, int (*fn)(struct proc_stat *
/* Returns true if SPEC is `nominal' in every entry in PP. */
int
proc_stat_list_spec_nominal (struct proc_stat_list *pp,
- struct ps_fmt_spec *spec)
+ const struct ps_fmt_spec *spec)
{
int (*nominal_fn)(struct proc_stat *ps, const struct ps_getter *getter) =
- ps_fmt_spec_nominal_fn (spec);
+ spec->nominal_fn;
if (nominal_fn == NULL)
return FALSE;