From e999899c7759acc7134d323b4db864fedcb64b94 Mon Sep 17 00:00:00 2001 From: Andrey Ovchinnikov Date: Mon, 29 Jan 2024 11:15:23 +0300 Subject: [PATCH] make apply fmt --- sources/mdb_iamproxy.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sources/mdb_iamproxy.c b/sources/mdb_iamproxy.c index 7f34e311e..0ec2b31f8 100644 --- a/sources/mdb_iamproxy.c +++ b/sources/mdb_iamproxy.c @@ -50,8 +50,7 @@ int mdb_iamproxy_recv_from_socket(int socket_fd, char *msg_body) received += rt; } for (int i = 0; i < MDB_IAMPROXY_DEFAULT_HEADER_SIZE; ++i) { - body_size |= - (((uint64_t)buffer[i]) << (i * CHAR_BIT)); + body_size |= (((uint64_t)buffer[i]) << (i * CHAR_BIT)); } /*RECEIVE BODY*/ @@ -78,8 +77,8 @@ int mdb_iamproxy_send_to_socket(int socket_fd, const char *send_msg) uint64_t current_body_size = body_size; uint64_t msg_size = sizeof(body_size) + body_size; uint64_t sent = 0; // stores byte-size of sended info - char *msg = calloc( - msg_size, sizeof(*msg)); // allocate memory for msg buffer + char *msg = calloc(msg_size, + sizeof(*msg)); // allocate memory for msg buffer if (msg == NULL) { // error during allocating memory for msg buffer send_result = MDB_IAMPROXY_RES_ERROR; goto free_end;