summaryrefslogtreecommitdiffstats
path: root/cmd-send-keys.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-09-22 14:03:11 +0000
committerTiago Cunha <tcunha@gmx.com>2009-09-22 14:03:11 +0000
commit480211f0eeab77c7c58291305628d8b1d987e751 (patch)
treee4525c8aac2c88c338a9eaa94cdd09831c833c84 /cmd-send-keys.c
parent59e65cbda27e49b90aab48d13aa8036303cd6679 (diff)
Sync OpenBSD patchset 341:
Nuke -i option which isn't used anymore.
Diffstat (limited to 'cmd-send-keys.c')
-rw-r--r--cmd-send-keys.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/cmd-send-keys.c b/cmd-send-keys.c
index c0365592..c9be3f13 100644
--- a/cmd-send-keys.c
+++ b/cmd-send-keys.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-send-keys.c,v 1.21 2009-08-20 11:37:46 tcunha Exp $ */
+/* $Id: cmd-send-keys.c,v 1.22 2009-09-22 14:03:11 tcunha Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -33,7 +33,6 @@ size_t cmd_send_keys_print(struct cmd *, char *, size_t);
struct cmd_send_keys_data {
char *target;
- int idx;
u_int nkeys;
int *keys;
};
@@ -58,7 +57,6 @@ cmd_send_keys_parse(struct cmd *self, int argc, char **argv, char **cause)
self->data = data = xmalloc(sizeof *data);
data->target = NULL;
- data->idx = -1;
data->nkeys = 0;
data->keys = NULL;
@@ -143,8 +141,6 @@ cmd_send_keys_print(struct cmd *self, char *buf, size_t len)
return (off);
if (off < len && data->target != NULL)
off += cmd_prarg(buf + off, len - off, " -t ", data->target);
- if (off < len && data->idx != -1)
- off += xsnprintf(buf + off, len - off, " -i %d", data->idx);
for (i = 0; i < data->nkeys; i++) {
if (off >= len)