summaryrefslogtreecommitdiffstats
path: root/cmd-server-info.c
authortcunha <tcunha>2009-08-20 11:35:16 (GMT)
committer tcunha <tcunha>2009-08-20 11:35:16 (GMT)
commit35a27350e54b100dbdffe33ec8a5d888df0ac573 (patch) (side-by-side diff)
tree292b1af08d7bc7b633a22edb93bae7adb4a7e460 /cmd-server-info.c
parent1dee0057da3c341641af397611b5ac8ec977eed1 (diff)
downloadtmux-old-35a27350e54b100dbdffe33ec8a5d888df0ac573.zip
tmux-old-35a27350e54b100dbdffe33ec8a5d888df0ac573.tar.gz
tmux-old-35a27350e54b100dbdffe33ec8a5d888df0ac573.tar.bz2
Sync OpenBSD patchset 270:
Tag a few missed printf-like functions and fix a missing "%s".
Diffstat (limited to 'cmd-server-info.c') (more/less context) (ignore whitespace changes)
-rw-r--r--cmd-server-info.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd-server-info.c b/cmd-server-info.c
index 04ec796..c95a867 100644
--- a/cmd-server-info.c
+++ b/cmd-server-info.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-server-info.c,v 1.25 2009/08/14 21:04:04 tcunha Exp $ */
+/* $Id: cmd-server-info.c,v 1.26 2009/08/20 11:35:16 tcunha Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <[email protected]>
@@ -81,7 +81,7 @@ cmd_server_info_exec(unused struct cmd *self, struct cmd_ctx *ctx)
ctx->print(ctx, "protocol version is %d", PROTOCOL_VERSION);
ctx->print(ctx, "%u clients, %u sessions",
ARRAY_LENGTH(&clients), ARRAY_LENGTH(&sessions));
- ctx->print(ctx, "");
+ ctx->print(ctx, "%s", "");
ctx->print(ctx, "Clients:");
for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
@@ -94,7 +94,7 @@ cmd_server_info_exec(unused struct cmd *self, struct cmd_ctx *ctx)
c->session->name, c->tty.sx, c->tty.sy, c->tty.termname,
c->flags, c->tty.flags);
}
- ctx->print(ctx, "");
+ ctx->print(ctx, "%s", "");
ctx->print(ctx, "Sessions: [%zu/%zu]",
sizeof (struct grid_cell), sizeof (struct grid_utf8));
@@ -142,7 +142,7 @@ cmd_server_info_exec(unused struct cmd *self, struct cmd_ctx *ctx)
}
}
}
- ctx->print(ctx, "");
+ ctx->print(ctx, "%s", "");
ctx->print(ctx, "Terminals:");
SLIST_FOREACH(term, &tty_terms, entry) {
@@ -174,7 +174,7 @@ cmd_server_info_exec(unused struct cmd *self, struct cmd_ctx *ctx)
}
}
}
- ctx->print(ctx, "");
+ ctx->print(ctx, "%s", "");
return (0);
}