fixing formatiing
This commit is contained in:
parent
516a2f0efc
commit
d10bce3dc8
|
@ -154,27 +154,26 @@ int main(int argc, char **argv) {
|
||||||
while (1) {
|
while (1) {
|
||||||
static int flag = 0;
|
static int flag = 0;
|
||||||
static option long_options[] = {
|
static option long_options[] = {
|
||||||
{ "address", required_argument, nullptr, 'a' },
|
{"address", required_argument, nullptr, 'a'},
|
||||||
{ "daemon", no_argument, nullptr, 'D' },
|
{"daemon", no_argument, nullptr, 'D'},
|
||||||
{ "htdocs", required_argument, nullptr, 'd' },
|
{"htdocs", required_argument, nullptr, 'd'},
|
||||||
{ "help", no_argument, nullptr, 'h' },
|
{"help", no_argument, nullptr, 'h'},
|
||||||
{ "verbose", no_argument, nullptr, 'v' },
|
{"verbose", no_argument, nullptr, 'v'},
|
||||||
{ "verify-client", no_argument, nullptr, 'V' },
|
{"verify-client", no_argument, nullptr, 'V'},
|
||||||
{ "header-table-size", required_argument, nullptr, 'c' },
|
{"header-table-size", required_argument, nullptr, 'c'},
|
||||||
{ "push", required_argument, nullptr, 'p' },
|
{"push", required_argument, nullptr, 'p'},
|
||||||
{ "padding", required_argument, nullptr, 'b' },
|
{"padding", required_argument, nullptr, 'b'},
|
||||||
{ "workers", required_argument, nullptr, 'n' },
|
{"workers", required_argument, nullptr, 'n'},
|
||||||
{ "error-gzip", no_argument, nullptr, 'e' },
|
{"error-gzip", no_argument, nullptr, 'e'},
|
||||||
{ "no-tls", no_argument, &flag, 1 },
|
{"no-tls", no_argument, &flag, 1},
|
||||||
{ "color", no_argument, &flag, 2 },
|
{"color", no_argument, &flag, 2},
|
||||||
{ "version", no_argument, &flag, 3 },
|
{"version", no_argument, &flag, 3},
|
||||||
{ "dh-param-file", required_argument, &flag, 4 },
|
{"dh-param-file", required_argument, &flag, 4},
|
||||||
{ "early-response", no_argument, &flag, 5 },
|
{"early-response", no_argument, &flag, 5},
|
||||||
{ nullptr, 0, nullptr, 0 }
|
{nullptr, 0, nullptr, 0}};
|
||||||
};
|
|
||||||
int option_index = 0;
|
int option_index = 0;
|
||||||
int c = getopt_long(argc, argv, "DVb:c:d:ehn:p:va:", long_options,
|
int c =
|
||||||
&option_index);
|
getopt_long(argc, argv, "DVb:c:d:ehn:p:va:", long_options, &option_index);
|
||||||
char *end;
|
char *end;
|
||||||
if (c == -1) {
|
if (c == -1) {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue