summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar minus <minus@mnus.de>2015-08-20 15:15:04 +0200
committerLibravatar minus <minus@mnus.de>2015-08-20 15:27:59 +0200
commit6ab968e63eb8c59abda6ddf9c5ae6d5a15d4c25e (patch)
tree0bf158bf29431ced3d2bbc7d6f49baf8c5b2c5f4
parentadded sway_terminate to exit cleanly (diff)
downloadsway-6ab968e63eb8c59abda6ddf9c5ae6d5a15d4c25e.tar.gz
sway-6ab968e63eb8c59abda6ddf9c5ae6d5a15d4c25e.tar.zst
sway-6ab968e63eb8c59abda6ddf9c5ae6d5a15d4c25e.zip
fixed formatting
-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) {
183 } 183 }
184 184
185 switch (client->current_command) { 185 switch (client->current_command) {
186 case IPC_COMMAND: 186 case IPC_COMMAND:
187 { 187 {
188 buf[client->payload_length] = '\0'; 188 buf[client->payload_length] = '\0';
189 bool success = handle_command(config, buf); 189 bool success = handle_command(config, buf);
190 char reply[64]; 190 char reply[64];
191 int length = snprintf(reply, sizeof(reply), "{\"success\":%s}", success ? "true" : "false"); 191 int length = snprintf(reply, sizeof(reply), "{\"success\":%s}", success ? "true" : "false");
192 ipc_send_reply(client, reply, (uint32_t) length); 192 ipc_send_reply(client, reply, (uint32_t) length);
193 break; 193 break;
194 } 194 }
195 default: 195 default:
196 sway_log(L_INFO, "Unknown IPC command type %i", client->current_command); 196 sway_log(L_INFO, "Unknown IPC command type %i", client->current_command);
197 ipc_client_disconnect(client); 197 ipc_client_disconnect(client);
198 break; 198 break;
199 } 199 }
200 200
201 client->payload_length = 0; 201 client->payload_length = 0;