mirror of
https://github.com/wg/wrk
synced 2025-01-23 04:02:59 +08:00
use correct type for getopt_long result
This commit is contained in:
parent
522ec607f8
commit
b8431944ed
@ -552,7 +552,8 @@ static struct option longopts[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static int parse_args(struct config *cfg, char **url, char **headers, int argc, char **argv) {
|
static int parse_args(struct config *cfg, char **url, char **headers, int argc, char **argv) {
|
||||||
char c, **header = headers;
|
char **header = headers;
|
||||||
|
int c;
|
||||||
|
|
||||||
memset(cfg, 0, sizeof(struct config));
|
memset(cfg, 0, sizeof(struct config));
|
||||||
cfg->threads = 2;
|
cfg->threads = 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user