diff --git a/lib/nghttp2_hd.h b/lib/nghttp2_hd.h index 12177e8d..7ca1eb03 100644 --- a/lib/nghttp2_hd.h +++ b/lib/nghttp2_hd.h @@ -358,8 +358,8 @@ int nghttp2_hd_emit_newname_block(nghttp2_bufs *bufs, nghttp2_nv *nv, int nghttp2_hd_emit_table_size(nghttp2_bufs *bufs, size_t table_size); /* For unittesting purpose */ -NGHTTP2_EXTERN nghttp2_hd_entry *nghttp2_hd_table_get(nghttp2_hd_context *context, - size_t index); +NGHTTP2_EXTERN nghttp2_hd_entry * +nghttp2_hd_table_get(nghttp2_hd_context *context, size_t index); /* For unittesting purpose */ ssize_t nghttp2_hd_decode_length(uint32_t *res, size_t *shift_ptr, int *final, diff --git a/src/h2load.cc b/src/h2load.cc index 2e7d2b74..584f5635 100644 --- a/src/h2load.cc +++ b/src/h2load.cc @@ -1029,16 +1029,13 @@ void print_help(std::ostream &out) { Options: -n, --requests= Number of requests. - Default: )" - << config.nreqs << R"( + Default: )" << config.nreqs << R"( -c, --clients= Number of concurrent clients. - Default: )" - << config.nclients << R"( + Default: )" << config.nclients << R"( -t, --threads= Number of native threads. - Default: )" - << config.nthreads << R"( + Default: )" << config.nthreads << R"( -i, --input-file= Path of a file with multiple URIs are separated by EOLs. This option will disable URIs getting from command-line. @@ -1055,15 +1052,13 @@ Options: -w, --window-bits= Sets the stream level initial window size to (2**)-1. For SPDY, 2** is used instead. - Default: )" - << config.window_bits << R"( + Default: )" << config.window_bits << R"( -W, --connection-window-bits= Sets the connection level initial window size to (2**)-1. For SPDY, if is strictly less than 16, this option is ignored. Otherwise 2** is used for SPDY. - Default: )" - << config.connection_window_bits << R"( + Default: )" << config.connection_window_bits << R"( -H, --header=
Add/Override a header to the requests. --ciphers= @@ -1081,8 +1076,7 @@ Options: Available protocol: )"; #endif // !HAVE_SPDYLAY out << NGHTTP2_CLEARTEXT_PROTO_VERSION_ID << R"( - Default: )" - << NGHTTP2_CLEARTEXT_PROTO_VERSION_ID << R"( + Default: )" << NGHTTP2_CLEARTEXT_PROTO_VERSION_ID << R"( -d, --data= Post FILE to server. The request method is changed to POST. @@ -1107,8 +1101,7 @@ Options: -v, --verbose Output debug information. --version Display version information and exit. - -h, --help Display this help and exit.)" - << std::endl; + -h, --help Display this help and exit.)" << std::endl; } } // namespace