summaryrefslogtreecommitdiffstats
path: root/control-notify.c
diff options
context:
space:
mode:
authornicm <nicm>2019-05-07 10:25:15 +0000
committernicm <nicm>2019-05-07 10:25:15 +0000
commit69440d19b783c72139f22c5c72b34b55d99e71de (patch)
treeac9803539b6091f3c666c471d76c2dd8e30fbb86 /control-notify.c
parent45ae9a8e3520d73c795bb993ced4fe43d06ad6f1 (diff)
Do not use evbuffer_add_buffer because it is destructive and doesn't
work in newer libevent.
Diffstat (limited to 'control-notify.c')
-rw-r--r--control-notify.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/control-notify.c b/control-notify.c
index 7b28e8f0..340dab73 100644
--- a/control-notify.c
+++ b/control-notify.c
@@ -28,19 +28,14 @@
void
control_notify_input(struct client *c, struct window_pane *wp,
- struct evbuffer *input)
+ const u_char *buf, size_t len)
{
- u_char *buf;
- size_t len;
struct evbuffer *message;
u_int i;
if (c->session == NULL)
return;
- buf = EVBUFFER_DATA(input);
- len = EVBUFFER_LENGTH(input);
-
/*
* Only write input if the window pane is linked to a window belonging
* to the client's session.