fix: is_port_opened
This commit is contained in:
@ -41,14 +41,11 @@ void print_config(const struct scan *general, const char *hosts_path,
|
||||
|
||||
bool is_port_opened(const e_state states[6], uint8_t type)
|
||||
{
|
||||
if (type == SCAN_ALL) {
|
||||
for (uint8_t i = 0; i < NB_SCAN; i++)
|
||||
if (states[i] == OPENED)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
return states[type] == OPENED;
|
||||
}
|
||||
|
||||
static void print_port_state(uint16_t port, uint8_t type,
|
||||
const struct response *response)
|
||||
|
Reference in New Issue
Block a user