diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-05 17:12:11 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-05 17:12:11 +0000 |
commit | ee1a7fded7653ffc2ba68a4188c89a7cb6e1bf1d (patch) | |
tree | cd72a484914cac349ddc0b8cde5ef30bdb9ca066 /cmd-generic.c | |
parent | 642c0b00ab43079cd251ec9616963b8a806b3464 (diff) | |
download | rtmux-ee1a7fded7653ffc2ba68a4188c89a7cb6e1bf1d.tar.gz rtmux-ee1a7fded7653ffc2ba68a4188c89a7cb6e1bf1d.tar.bz2 rtmux-ee1a7fded7653ffc2ba68a4188c89a7cb6e1bf1d.zip |
Print for the less easy commands.
Diffstat (limited to 'cmd-generic.c')
-rw-r--r-- | cmd-generic.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/cmd-generic.c b/cmd-generic.c index b045a7ee..8eece27b 100644 --- a/cmd-generic.c +++ b/cmd-generic.c @@ -1,4 +1,4 @@ -/* $Id: cmd-generic.c,v 1.6 2008-06-05 16:35:31 nicm Exp $ */ +/* $Id: cmd-generic.c,v 1.7 2008-06-05 17:12:10 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net> @@ -101,11 +101,11 @@ cmd_clientonly_print(struct cmd *self, char *buf, size_t len) struct cmd_clientonly_data *data = self->data; size_t off = 0; - off += xsnprintf(buf, len, "%s ", self->entry->name); + off += xsnprintf(buf, len, "%s", self->entry->name); if (data == NULL) return; if (off < len && data->cname != NULL) - off += xsnprintf(buf + off, len - off, "-c %s ", data->cname); + off += xsnprintf(buf + off, len - off, " -c %s", data->cname); } int @@ -199,13 +199,13 @@ cmd_sessiononly_print(struct cmd *self, char *buf, size_t len) struct cmd_sessiononly_data *data = self->data; size_t off = 0; - off += xsnprintf(buf, len, "%s ", self->entry->name); + off += xsnprintf(buf, len, "%s", self->entry->name); if (data == NULL) return; if (off < len && data->cname != NULL) - off += xsnprintf(buf + off, len - off, "-c %s ", data->cname); + off += xsnprintf(buf + off, len - off, " -c %s", data->cname); if (off < len && data->sname != NULL) - off += xsnprintf(buf + off, len - off, "-s %s ", data->sname); + off += xsnprintf(buf + off, len - off, " -s %s", data->sname); } int @@ -313,13 +313,13 @@ cmd_windowonly_print(struct cmd *self, char *buf, size_t len) struct cmd_windowonly_data *data = self->data; size_t off = 0; - off += xsnprintf(buf, len, "%s ", self->entry->name); + off += xsnprintf(buf, len, "%s", self->entry->name); if (data == NULL) return; if (off < len && data->cname != NULL) - off += xsnprintf(buf + off, len - off, "-c %s ", data->cname); + off += xsnprintf(buf + off, len - off, " -c %s", data->cname); if (off < len && data->sname != NULL) - off += xsnprintf(buf + off, len - off, "-s %s ", data->sname); + off += xsnprintf(buf + off, len - off, " -s %s", data->sname); if (off < len && data->idx != -1) - off += xsnprintf(buf + off, len - off, "-i %d ", data->idx); + off += xsnprintf(buf + off, len - off, " -i %d", data->idx); } |