summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
diff options
context:
space:
mode:
authorChristopher Michael <devilhorns@comcast.net>2020-03-30 14:33:23 -0400
committerChristopher Michael <devilhorns@comcast.net>2020-03-30 14:33:23 -0400
commitdc7283eb143ad38b938def0bf9cc88670d0de1ff (patch)
tree69e575184bcd9a100bda1c00dd4b6fb7bf1fe132 /src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
parentf885896890b934e12eca9f0604f28a96c8ad77e0 (diff)
ecore_evas_wayland: Declare variables at top of function
Diffstat (limited to '')
-rw-r--r--src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
index 36d64d9940..2fd027cb14 100644
--- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
+++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
@@ -2604,12 +2604,14 @@ static Eina_Bool
2604_write_to_fd(void *data, Ecore_Fd_Handler *fd_handler) 2604_write_to_fd(void *data, Ecore_Fd_Handler *fd_handler)
2605{ 2605{
2606 int fd; 2606 int fd;
2607 size_t len;
2607 Delayed_Writing *slice = data; 2608 Delayed_Writing *slice = data;
2608 2609
2609 fd = ecore_main_fd_handler_fd_get(fd_handler); 2610 fd = ecore_main_fd_handler_fd_get(fd_handler);
2610 if (fd < 0) goto end; 2611 if (fd < 0) goto end;
2611 2612
2612 size_t len = write(fd, slice->slice.mem + slice->written_bytes, slice->slice.len - slice->written_bytes); 2613 len = write(fd, slice->slice.mem + slice->written_bytes,
2614 slice->slice.len - slice->written_bytes);
2613 2615
2614 slice->written_bytes += len; 2616 slice->written_bytes += len;
2615 if (slice->written_bytes != slice->slice.len) 2617 if (slice->written_bytes != slice->slice.len)