More constexpr

This commit is contained in:
Tatsuhiro Tsujikawa 2015-05-31 18:44:37 +09:00
parent ad150c3ab1
commit ee4d53a9e4
1 changed files with 9 additions and 8 deletions

View File

@ -768,7 +768,7 @@ bool conf_exists(const char *path) {
} // namespace } // namespace
namespace { namespace {
const char *DEFAULT_NPN_LIST = "h2,h2-16,h2-14," constexpr char DEFAULT_NPN_LIST[] = "h2,h2-16,h2-14,"
#ifdef HAVE_SPDYLAY #ifdef HAVE_SPDYLAY
"spdy/3.1," "spdy/3.1,"
#endif // HAVE_SPDYLAY #endif // HAVE_SPDYLAY
@ -776,17 +776,18 @@ const char *DEFAULT_NPN_LIST = "h2,h2-16,h2-14,"
} // namespace } // namespace
namespace { namespace {
const char *DEFAULT_TLS_PROTO_LIST = "TLSv1.2,TLSv1.1"; constexpr char DEFAULT_TLS_PROTO_LIST[] = "TLSv1.2,TLSv1.1";
} // namespace } // namespace
namespace { namespace {
const char *DEFAULT_ACCESSLOG_FORMAT = "$remote_addr - - [$time_local] " constexpr char DEFAULT_ACCESSLOG_FORMAT[] =
"\"$request\" $status $body_bytes_sent " R"($remote_addr - - [$time_local] )"
"\"$http_referer\" \"$http_user_agent\""; R"("$request" $status $body_bytes_sent )"
R"("$http_referer" "$http_user_agent")";
} // namespace } // namespace
namespace { namespace {
auto DEFAULT_DOWNSTREAM_HOST = "127.0.0.1"; constexpr char DEFAULT_DOWNSTREAM_HOST[] = "127.0.0.1";
int16_t DEFAULT_DOWNSTREAM_PORT = 80; int16_t DEFAULT_DOWNSTREAM_PORT = 80;
} // namespace; } // namespace;