diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-04-11 16:12:28 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-04-11 16:12:28 -0400 |
commit | 561271ff43fbb646db9dbef93c5941d0c9a7a5ee (patch) | |
tree | dddebc3a5c116151af33af81b8e13c39f9e62aea /pty-unix.c | |
parent | 63513dba6880d75ba279ed01960ec9bf2f41208a (diff) | |
download | runes-561271ff43fbb646db9dbef93c5941d0c9a7a5ee.tar.gz runes-561271ff43fbb646db9dbef93c5941d0c9a7a5ee.zip |
line lengths
Diffstat (limited to 'pty-unix.c')
-rw-r--r-- | pty-unix.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -68,7 +68,8 @@ void runes_pty_backend_loop_init(RunesTerm *t) ((RunesLoopData *)data)->req.data = data; ((RunesLoopData *)data)->t = t; - uv_queue_work(t->loop, data, runes_pty_backend_read, runes_pty_backend_got_data); + uv_queue_work( + t->loop, data, runes_pty_backend_read, runes_pty_backend_got_data); } void runes_pty_backend_write(RunesTerm *t, char *buf, size_t len) @@ -97,7 +98,8 @@ static void runes_pty_backend_read(uv_work_t *req) RunesPtyLoopData *data; data = (RunesPtyLoopData *)req->data; - data->len = read(data->data.t->pty.master, data->buf, RUNES_PTY_BUFFER_LENGTH); + data->len = read( + data->data.t->pty.master, data->buf, RUNES_PTY_BUFFER_LENGTH); } static void runes_pty_backend_got_data(uv_work_t *req, int status) @@ -111,7 +113,8 @@ static void runes_pty_backend_got_data(uv_work_t *req, int status) if (data->len > 0) { runes_handle_pty_read(t, data->buf, data->len); - uv_queue_work(t->loop, req, runes_pty_backend_read, runes_pty_backend_got_data); + uv_queue_work( + t->loop, req, runes_pty_backend_read, runes_pty_backend_got_data); } else { runes_handle_pty_close(t); |