diff options
author | Thomas Adam <thomas@xteddy.org> | 2018-08-23 19:02:40 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2018-08-23 19:02:40 +0100 |
commit | da5d5633757ac01fbeb42bf763415ba2314b82dd (patch) | |
tree | 51ecd06a0d11700115216b99fd26e95b35dfc08a /cmd-show-messages.c | |
parent | 183193bdbc1e1b3638644a2c2ce7e7861b632c16 (diff) | |
parent | bceccc6b63b48ddeefb035ef6d910bea60340342 (diff) | |
download | rtmux-da5d5633757ac01fbeb42bf763415ba2314b82dd.tar.gz rtmux-da5d5633757ac01fbeb42bf763415ba2314b82dd.tar.bz2 rtmux-da5d5633757ac01fbeb42bf763415ba2314b82dd.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-show-messages.c')
-rw-r--r-- | cmd-show-messages.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/cmd-show-messages.c b/cmd-show-messages.c index 21511b48..8da12374 100644 --- a/cmd-show-messages.c +++ b/cmd-show-messages.c @@ -43,7 +43,6 @@ const struct cmd_entry cmd_show_messages_entry = { }; static int cmd_show_messages_terminals(struct cmdq_item *, int); -static int cmd_show_messages_jobs(struct cmdq_item *, int); static int cmd_show_messages_terminals(struct cmdq_item *item, int blank) @@ -66,25 +65,6 @@ cmd_show_messages_terminals(struct cmdq_item *item, int blank) return (n != 0); } -static int -cmd_show_messages_jobs(struct cmdq_item *item, int blank) -{ - struct job *job; - u_int n; - - n = 0; - LIST_FOREACH(job, &all_jobs, entry) { - if (blank) { - cmdq_print(item, "%s", ""); - blank = 0; - } - cmdq_print(item, "Job %u: %s [fd=%d, pid=%ld, status=%d]", - n, job->cmd, job->fd, (long)job->pid, job->status); - n++; - } - return (n != 0); -} - static enum cmd_retval cmd_show_messages_exec(struct cmd *self, struct cmdq_item *item) { @@ -103,7 +83,7 @@ cmd_show_messages_exec(struct cmd *self, struct cmdq_item *item) done = 1; } if (args_has(args, 'J')) { - cmd_show_messages_jobs(item, blank); + job_print_summary(item, blank); done = 1; } if (done) |