diff options
Diffstat (limited to 'crypto/openssl/doc/designs/ddd/ddd-03-fd-blocking.c')
| -rw-r--r-- | crypto/openssl/doc/designs/ddd/ddd-03-fd-blocking.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/crypto/openssl/doc/designs/ddd/ddd-03-fd-blocking.c b/crypto/openssl/doc/designs/ddd/ddd-03-fd-blocking.c index c545714c3c5f..5adde1a9d555 100644 --- a/crypto/openssl/doc/designs/ddd/ddd-03-fd-blocking.c +++ b/crypto/openssl/doc/designs/ddd/ddd-03-fd-blocking.c @@ -51,7 +51,7 @@ SSL *new_conn(SSL_CTX *ctx, int fd, const char *bare_hostname) { SSL *ssl; #ifdef USE_QUIC - static const unsigned char alpn[] = {5, 'd', 'u', 'm', 'm', 'y'}; + static const unsigned char alpn[] = { 5, 'd', 'u', 'm', 'm', 'y' }; #endif ssl = SSL_new(ctx); @@ -138,7 +138,7 @@ int main(int argc, char **argv) { int rc, fd = -1, l, mlen, res = 1; static char msg[300]; - struct addrinfo hints = {0}, *result = NULL; + struct addrinfo hints = { 0 }, *result = NULL; SSL *ssl = NULL; SSL_CTX *ctx = NULL; char buf[2048]; @@ -149,7 +149,7 @@ int main(int argc, char **argv) } mlen = snprintf(msg, sizeof(msg), - "GET / HTTP/1.0\r\nHost: %s\r\n\r\n", argv[1]); + "GET / HTTP/1.0\r\nHost: %s\r\n\r\n", argv[1]); ctx = create_ssl_ctx(); if (ctx == NULL) { @@ -157,9 +157,9 @@ int main(int argc, char **argv) goto fail; } - hints.ai_family = AF_INET; - hints.ai_socktype = SOCK_STREAM; - hints.ai_flags = AI_PASSIVE; + hints.ai_family = AF_INET; + hints.ai_socktype = SOCK_STREAM; + hints.ai_flags = AI_PASSIVE; rc = getaddrinfo(argv[1], argv[2], &hints, &result); if (rc < 0) { fprintf(stderr, "cannot resolve\n"); |
