aboutsummaryrefslogtreecommitdiff
path: root/libseat
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2020-08-30 03:26:32 +0200
committerKenny Levinsen <kl@kl.wtf>2020-08-30 03:26:32 +0200
commite86c9ec2b722c8b6aef6ea90ecddb57081a1c67f (patch)
tree001027a8858304d9d1d2d4e161879981fa6ca66f /libseat
parentc36cc962e6b3fd7bec8093756d4c3a7df9940862 (diff)
seatd: Remove unused device_closed msg body
Diffstat (limited to 'libseat')
-rw-r--r--libseat/backend/seatd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libseat/backend/seatd.c b/libseat/backend/seatd.c
index 1a187b1..46e354d 100644
--- a/libseat/backend/seatd.c
+++ b/libseat/backend/seatd.c
@@ -478,9 +478,7 @@ static int close_device(struct libseat *base, int device_id) {
return -1;
}
- struct proto_server_device_closed rmsg;
- if (read_header(backend, SERVER_DEVICE_CLOSED, sizeof rmsg, false) == SIZE_MAX ||
- conn_get(backend, &rmsg, sizeof rmsg) == -1) {
+ if (read_header(backend, SERVER_DEVICE_CLOSED, 0, false) == SIZE_MAX) {
return -1;
}