Fix code style
This commit is contained in:
parent
46d3e35c30
commit
a7e41b0f85
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue