term: enqueue data: cleanup

This commit is contained in:
Daniel Eklöf 2020-08-22 09:25:25 +02:00
parent efbc3431ed
commit 91a839bf8e
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -53,11 +53,6 @@ const char *const XCURSOR_BOTTOM_SIDE = "bottom_side";
static void static void
enqueue_data_for_slave(const void *data, size_t len, size_t offset, enqueue_data_for_slave(const void *data, size_t len, size_t offset,
ptmx_buffer_list_t *buffer_list) ptmx_buffer_list_t *buffer_list)
{
/*
* We're in asynchronous mode - push data to queue and let the FDM
* handler take care of it
*/
{ {
void *copy = xmalloc(len); void *copy = xmalloc(len);
memcpy(copy, data, len); memcpy(copy, data, len);
@ -69,7 +64,6 @@ enqueue_data_for_slave(const void *data, size_t len, size_t offset,
}; };
tll_push_back(*buffer_list, queued); tll_push_back(*buffer_list, queued);
} }
}
static bool static bool
data_to_slave(struct terminal *term, const void *data, size_t len, data_to_slave(struct terminal *term, const void *data, size_t len,