diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-08-22 07:25:25 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-08-25 16:56:15 +0000 |
| commit | 91a839bf8ee146e6c43152f701431a77fa34b940 (patch) | |
| tree | 82f2e12955ba7adb3dc6ffb1cdf971ff3d1bb7d3 | |
| parent | selection: clipboard callback: assert we're in sending-paste-data mode (diff) | |
term: enqueue data: cleanup
| -rw-r--r-- | terminal.c | 22 |
1 files changed, 8 insertions, 14 deletions
@@ -54,21 +54,15 @@ static void enqueue_data_for_slave(const void *data, size_t len, size_t offset, 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); - memcpy(copy, data, len); + void *copy = xmalloc(len); + memcpy(copy, data, len); - struct ptmx_buffer queued = { - .data = copy, - .len = len, - .idx = offset, - }; - tll_push_back(*buffer_list, queued); - } + struct ptmx_buffer queued = { + .data = copy, + .len = len, + .idx = offset, + }; + tll_push_back(*buffer_list, queued); } static bool |
