summaryrefslogtreecommitdiff
path: root/clients/dnd.c
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2012-03-30 23:10:27 +0200
committerKristian Høgsberg <krh@bitplanet.net>2012-04-03 14:50:15 -0400
commit3685c3abf6c6f7d03b571458df52731ccf928981 (patch)
treeb9f62ef56a43248d267bc061b429fea62a233137 /clients/dnd.c
parent1103a1a484999dc0d53eb6a42bc62f461a0a582d (diff)
Fix `unused-result' warnings.
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Diffstat (limited to 'clients/dnd.c')
-rw-r--r--clients/dnd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/clients/dnd.c b/clients/dnd.c
index e3d3c34b..8e67dc4d 100644
--- a/clients/dnd.c
+++ b/clients/dnd.c
@@ -272,7 +272,9 @@ data_source_send(void *data, struct wl_data_source *source,
dnd_flower_message.x_offset = dnd_drag->x_offset;
dnd_flower_message.y_offset = dnd_drag->y_offset;
- write(fd, &dnd_flower_message, sizeof dnd_flower_message);
+ if (write(fd, &dnd_flower_message, sizeof dnd_flower_message) < 0)
+ abort();
+
close(fd);
}