aboutsummaryrefslogtreecommitdiff
path: root/seatd
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 /seatd
parentc36cc962e6b3fd7bec8093756d4c3a7df9940862 (diff)
seatd: Remove unused device_closed msg body
Diffstat (limited to 'seatd')
-rw-r--r--seatd/client.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/seatd/client.c b/seatd/client.c
index 0991fbb..dcb9456 100644
--- a/seatd/client.c
+++ b/seatd/client.c
@@ -250,16 +250,12 @@ static int handle_close_device(struct client *client, int device_id) {
goto fail;
}
- struct proto_server_device_closed msg = {
- .device_id = device_id,
- };
struct proto_header header = {
.opcode = SERVER_DEVICE_CLOSED,
- .size = sizeof msg,
+ .size = 0,
};
- if (connection_put(&client->connection, &header, sizeof header) == -1 ||
- connection_put(&client->connection, &msg, sizeof msg)) {
+ if (connection_put(&client->connection, &header, sizeof header) == -1) {
log_errorf("unable to write response: %s", strerror(errno));
return -1;
}