remove redundant else and fix formatting
This commit is contained in:
parent
c6ed6a3b25
commit
743cac974d
6
fbflut.c
6
fbflut.c
|
@ -113,7 +113,7 @@ void *handle_connection(void *socket_desc) {
|
|||
if (read_size == 36) {
|
||||
/* line too long, attempt parsing anyways */
|
||||
read_to = (uintptr_t)client_message + read_size;
|
||||
} else {
|
||||
}
|
||||
/* line partially read, try reading more */
|
||||
read_size = recv(sock, client_message, 36,
|
||||
MSG_PEEK
|
||||
|
@ -122,9 +122,7 @@ void *handle_connection(void *socket_desc) {
|
|||
#endif
|
||||
);
|
||||
client_message[read_size] = '\0';
|
||||
read_to =
|
||||
(uintptr_t)strchrnul(client_message, '\n');
|
||||
}
|
||||
read_to = (uintptr_t)strchrnul(client_message, '\n');
|
||||
}
|
||||
read_to = read_to - (uintptr_t)client_message;
|
||||
read_size = recv(sock, client_message, read_to + 1, 0);
|
||||
|
|
Loading…
Reference in New Issue