1
0
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:
Will 2015-01-31 14:44:54 +09:00
parent 522ec607f8
commit b8431944ed

View File

@ -552,7 +552,8 @@ static struct option longopts[] = {
};
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));
cfg->threads = 2;