core: remove nb_threads from struct scan and pass it as a parameter

This commit is contained in:
0x35c
2025-06-03 15:34:46 +02:00
parent 9ae1e29f71
commit 954f59649a
5 changed files with 35 additions and 32 deletions

View File

@ -27,7 +27,6 @@ struct scan {
uint8_t ttl;
uint8_t max_retries;
struct response *responses;
uint8_t nb_threads;
};
int scan(struct scan *data);

View File

@ -2,9 +2,6 @@
#include <stdint.h>
#include "host.h"
#include "parsing.h"
#include "response.h"
#include "scan.h"
int create_threads(struct scan *general);
int create_threads(struct scan *general, uint8_t nb_threads);