clang-format-3.5
This commit is contained in:
parent
bb43b8e4c1
commit
54bf225692
|
@ -364,8 +364,8 @@ int reopen_log_files() {
|
|||
|
||||
lgconf->accesslog_fd = new_accesslog_fd;
|
||||
lgconf->errorlog_fd = new_errorlog_fd;
|
||||
lgconf->errorlog_tty = (new_errorlog_fd == -1) ?
|
||||
false : isatty(new_errorlog_fd);
|
||||
lgconf->errorlog_tty =
|
||||
(new_errorlog_fd == -1) ? false : isatty(new_errorlog_fd);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
|
11
src/util.cc
11
src/util.cc
|
@ -659,9 +659,7 @@ void store_original_fds() {
|
|||
make_socket_closeonexec(STDERR_COPY);
|
||||
}
|
||||
|
||||
void restore_original_fds() {
|
||||
dup2(STDERR_COPY, STDERR_FILENO);
|
||||
}
|
||||
void restore_original_fds() { dup2(STDERR_COPY, STDERR_FILENO); }
|
||||
|
||||
void close_log_file(int &fd) {
|
||||
if (fd != STDERR_COPY && fd != STDOUT_COPY && fd != -1) {
|
||||
|
@ -795,9 +793,11 @@ bool select_h2(const unsigned char **out, unsigned char *outlen,
|
|||
}
|
||||
|
||||
bool select_protocol(const unsigned char **out, unsigned char *outlen,
|
||||
const unsigned char *in, unsigned int inlen, std::vector<std::string> proto_list) {
|
||||
const unsigned char *in, unsigned int inlen,
|
||||
std::vector<std::string> proto_list) {
|
||||
for (const auto &proto : proto_list) {
|
||||
if (select_proto(out, outlen, in, inlen, proto.c_str(), static_cast<unsigned int>(proto.size()))) {
|
||||
if (select_proto(out, outlen, in, inlen, proto.c_str(),
|
||||
static_cast<unsigned int>(proto.size()))) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -818,7 +818,6 @@ std::vector<unsigned char> get_default_alpn() {
|
|||
return res;
|
||||
}
|
||||
|
||||
|
||||
std::vector<Range<const char *>> split_config_str_list(const char *s,
|
||||
char delim) {
|
||||
size_t len = 1;
|
||||
|
|
|
@ -579,7 +579,8 @@ bool select_h2(const unsigned char **out, unsigned char *outlen,
|
|||
// present in |in| of length inlen. Returns true if identifier is
|
||||
// selected.
|
||||
bool select_protocol(const unsigned char **out, unsigned char *outlen,
|
||||
const unsigned char *in, unsigned int inlen, std::vector<std::string> proto_list);
|
||||
const unsigned char *in, unsigned int inlen,
|
||||
std::vector<std::string> proto_list);
|
||||
|
||||
// Returns default ALPN protocol list, which only contains supported
|
||||
// HTTP/2 protocol identifier.
|
||||
|
|
Loading…
Reference in New Issue