src: Add constexpr to long_options
This commit is contained in:
parent
3444b42d44
commit
9db1c9467c
|
@ -373,7 +373,7 @@ OPTIONS:
|
|||
<< std::endl;
|
||||
}
|
||||
|
||||
static struct option long_options[] = {
|
||||
constexpr static struct option long_options[] = {
|
||||
{"http1text", no_argument, nullptr, 't'},
|
||||
{"table-size", required_argument, nullptr, 's'},
|
||||
{"deflate-table-size", required_argument, nullptr, 'S'},
|
||||
|
|
|
@ -1839,7 +1839,7 @@ int main(int argc, char **argv) {
|
|||
bool nreqs_set_manually = false;
|
||||
while (1) {
|
||||
static int flag = 0;
|
||||
static option long_options[] = {
|
||||
constexpr static option long_options[] = {
|
||||
{"requests", required_argument, nullptr, 'n'},
|
||||
{"clients", required_argument, nullptr, 'c'},
|
||||
{"data", required_argument, nullptr, 'd'},
|
||||
|
|
|
@ -251,7 +251,7 @@ OPTIONS:
|
|||
;
|
||||
}
|
||||
|
||||
static struct option long_options[] = {
|
||||
constexpr static struct option long_options[] = {
|
||||
{"dump-header-table", no_argument, nullptr, 'd'}, {nullptr, 0, nullptr, 0}};
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
|
|
|
@ -2680,7 +2680,7 @@ int main(int argc, char **argv) {
|
|||
bool color = false;
|
||||
while (1) {
|
||||
static int flag = 0;
|
||||
static option long_options[] = {
|
||||
constexpr static option long_options[] = {
|
||||
{"verbose", no_argument, nullptr, 'v'},
|
||||
{"null-out", no_argument, nullptr, 'n'},
|
||||
{"remote-name", no_argument, nullptr, 'O'},
|
||||
|
|
|
@ -202,7 +202,7 @@ int main(int argc, char **argv) {
|
|||
|
||||
while (1) {
|
||||
static int flag = 0;
|
||||
static option long_options[] = {
|
||||
constexpr static option long_options[] = {
|
||||
{"address", required_argument, nullptr, 'a'},
|
||||
{"daemon", no_argument, nullptr, 'D'},
|
||||
{"htdocs", required_argument, nullptr, 'd'},
|
||||
|
|
Loading…
Reference in New Issue