cmdmon: drop unused variable

This commit is contained in:
Miroslav Lichvar
2026-01-26 15:39:54 +01:00
parent 911bd54dff
commit b6f1650e7a

View File

@@ -1603,7 +1603,7 @@ read_from_cmd_socket(int sock_fd, int event, void *anything)
CMD_Reply tx_message; CMD_Reply tx_message;
IPAddr loopback_addr, remote_ip; IPAddr loopback_addr, remote_ip;
uint16_t rx_command; uint16_t rx_command;
struct timespec now, cooked_now; struct timespec cooked_now;
sck_message = SCK_ReceiveMessage(sock_fd, 0); sck_message = SCK_ReceiveMessage(sock_fd, 0);
if (!sck_message) if (!sck_message)
@@ -1612,7 +1612,7 @@ read_from_cmd_socket(int sock_fd, int event, void *anything)
read_length = sck_message->length; read_length = sck_message->length;
/* Get current time cheaply */ /* Get current time cheaply */
SCH_GetLastEventTime(&cooked_now, NULL, &now); SCH_GetLastEventTime(&cooked_now, NULL, NULL);
/* Check if the request came from the Unix domain socket, or network and /* Check if the request came from the Unix domain socket, or network and
whether the address is allowed (127.0.0.1 and ::1 is always allowed) */ whether the address is allowed (127.0.0.1 and ::1 is always allowed) */