aboutsummaryrefslogtreecommitdiff
path: root/sway/ipc.c
diff options
context:
space:
mode:
authorminus <minus@mnus.de>2015-08-20 15:15:04 +0200
committerminus <minus@mnus.de>2015-08-20 15:27:59 +0200
commit6ab968e63eb8c59abda6ddf9c5ae6d5a15d4c25e (patch)
tree0bf158bf29431ced3d2bbc7d6f49baf8c5b2c5f4 /sway/ipc.c
parentf26ed32e460f3007e623c529d28562f4a0b261cd (diff)
fixed formatting
Diffstat (limited to 'sway/ipc.c')
-rw-r--r--sway/ipc.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/sway/ipc.c b/sway/ipc.c
index d55469ed..074f2a78 100644
--- a/sway/ipc.c
+++ b/sway/ipc.c
@@ -183,19 +183,19 @@ void ipc_client_handle_command(struct ipc_client *client) {
}
switch (client->current_command) {
- case IPC_COMMAND:
- {
- buf[client->payload_length] = '\0';
- bool success = handle_command(config, buf);
- char reply[64];
- int length = snprintf(reply, sizeof(reply), "{\"success\":%s}", success ? "true" : "false");
- ipc_send_reply(client, reply, (uint32_t) length);
- break;
- }
- default:
- sway_log(L_INFO, "Unknown IPC command type %i", client->current_command);
- ipc_client_disconnect(client);
- break;
+ case IPC_COMMAND:
+ {
+ buf[client->payload_length] = '\0';
+ bool success = handle_command(config, buf);
+ char reply[64];
+ int length = snprintf(reply, sizeof(reply), "{\"success\":%s}", success ? "true" : "false");
+ ipc_send_reply(client, reply, (uint32_t) length);
+ break;
+ }
+ default:
+ sway_log(L_INFO, "Unknown IPC command type %i", client->current_command);
+ ipc_client_disconnect(client);
+ break;
}
client->payload_length = 0;