From 4946f74253de52f10beb023d4c5b88bafdb11ec4 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 5 Feb 2015 10:29:43 +0000 Subject: Wrap all the individual format_* calls in a single format_defaults functions. --- cmd-list-clients.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cmd-list-clients.c') diff --git a/cmd-list-clients.c b/cmd-list-clients.c index 292be722..893a6d05 100644 --- a/cmd-list-clients.c +++ b/cmd-list-clients.c @@ -74,8 +74,7 @@ cmd_list_clients_exec(struct cmd *self, struct cmd_q *cmdq) ft = format_create(); format_add(ft, "line", "%u", i); - format_session(ft, c->session); - format_client(ft, c); + format_defaults(ft, c, NULL, NULL, NULL); line = format_expand(ft, template); cmdq_print(cmdq, "%s", line); -- cgit