diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2023-05-09 00:31:36 +0300 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-05-10 02:51:46 +0200 |
commit | 9fe5e6bf0ccaccec9c5ea2c3a2cea86dbd9c78dc (patch) | |
tree | 927b94772ceaa8f6e5bcbb2ddeadf933df8bb814 /utils | |
parent | 19558c940e81d405dbda0ea1dd29549f34b5aa2a (diff) | |
download | hurd-9fe5e6bf0ccaccec9c5ea2c3a2cea86dbd9c78dc.tar.gz hurd-9fe5e6bf0ccaccec9c5ea2c3a2cea86dbd9c78dc.tar.bz2 hurd-9fe5e6bf0ccaccec9c5ea2c3a2cea86dbd9c78dc.zip |
Style tweaks
Message-Id: <20230508213136.608575-42-bugaevc@gmail.com>
Diffstat (limited to 'utils')
-rw-r--r-- | utils/ps.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -228,9 +228,9 @@ main(int argc, char *argv[]) argp_failure (state, 8, err, "%s: Can't add tty", tty_name); return err; } - int proc_stat_has_ctty(struct proc_stat *ps) + int proc_stat_has_ctty (struct proc_stat *ps) { - if (proc_stat_has(ps, PSTAT_TTY)) + if (proc_stat_has (ps, PSTAT_TTY)) /* Only match processes whose tty we can figure out. */ { struct ps_tty *tty = proc_stat_tty (ps); @@ -238,7 +238,7 @@ main(int argc, char *argv[]) { char *try = 0; const char *name = ps_tty_name (tty); - const char *short_name = ps_tty_short_name(tty); + const char *short_name = ps_tty_short_name (tty); while ((try = argz_next (tty_names, num_tty_names, try))) if ((name && strcmp (try, name) == 0) @@ -254,14 +254,14 @@ main(int argc, char *argv[]) { error_t err; struct ps_tty *tty; - mach_port_t cttyid = getcttyid(); + mach_port_t cttyid = getcttyid (); if (cttyid == MACH_PORT_NULL) - error(2, 0, "No controlling terminal"); + error (2, 0, "No controlling terminal"); err = ps_context_find_tty_by_cttyid (context, cttyid, &tty); if (err) - error(2, err, "Can't get controlling terminal"); + error (2, err, "Can't get controlling terminal"); return ps_tty_name (tty); } |