Fix code style

This commit is contained in:
Romain Vimont 2021-10-21 18:36:16 +02:00
parent 46d3e35c30
commit a7e41b0f85

View file

@ -63,14 +63,14 @@ controller_push_msg(struct controller *controller,
}
static bool
process_msg(struct controller *controller,
const struct control_msg *msg) {
process_msg(struct controller *controller, const struct control_msg *msg) {
static unsigned char serialized_msg[CONTROL_MSG_MAX_SIZE];
size_t length = control_msg_serialize(msg, serialized_msg);
if (!length) {
return false;
}
ssize_t w = net_send_all(controller->control_socket, serialized_msg, length);
ssize_t w =
net_send_all(controller->control_socket, serialized_msg, length);
return (size_t) w == length;
}