From 0209b2c932994e9ca55d39d98a83ea02aacd1332 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Sat, 18 Mar 2023 23:18:11 -0400 Subject: Modernize code by removing use of old style definitions. Also add -Werror=old-style-definition to enforce new code. Message-Id: --- libps/procstat.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libps/procstat.c') diff --git a/libps/procstat.c b/libps/procstat.c index 131d3a4b..45ae562f 100644 --- a/libps/procstat.c +++ b/libps/procstat.c @@ -758,7 +758,7 @@ proc_stat_set_flags (struct proc_stat *ps, ps_flags_t flags) /* Turn off use of the msg port if we decide somewhere along the way that it's hosed. */ - void suppress_msgport () + void suppress_msgport (void) { /* Turn off those things that were only good given the msg port. */ need &= ~(flags & ~no_msgport_flags); @@ -1057,8 +1057,7 @@ proc_stat_set_flags (struct proc_stat *ps, ps_flags_t flags) /* ---------------------------------------------------------------- */ /* Discard PS and any resources it holds. */ void -_proc_stat_free (ps) - struct proc_stat *ps; +_proc_stat_free (struct proc_stat *ps) { if (ps->context->user_hooks && ps->context->user_hooks->cleanup) /* Free any user state. */ -- cgit v1.2.3