From b48bcb214aca237a09f115f469869cc5a339cae7 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 3 Apr 2018 22:08:24 +0900 Subject: [PATCH] examples: Use C style comment in .c files --- examples/libevent-client.c | 4 ++-- examples/libevent-server.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/libevent-client.c b/examples/libevent-client.c index f998fba3..216e7bc6 100644 --- a/examples/libevent-client.c +++ b/examples/libevent-client.c @@ -343,7 +343,7 @@ static SSL_CTX *create_ssl_ctx(void) { #if OPENSSL_VERSION_NUMBER >= 0x10002000L SSL_CTX_set_alpn_protos(ssl_ctx, (const unsigned char *)"\x02h2", 3); -#endif // OPENSSL_VERSION_NUMBER >= 0x10002000L +#endif /* OPENSSL_VERSION_NUMBER >= 0x10002000L */ return ssl_ctx; } @@ -515,7 +515,7 @@ static void eventcb(struct bufferevent *bev, short events, void *ptr) { if (alpn == NULL) { SSL_get0_alpn_selected(ssl, &alpn, &alpnlen); } -#endif // OPENSSL_VERSION_NUMBER >= 0x10002000L +#endif /* OPENSSL_VERSION_NUMBER >= 0x10002000L */ if (alpn == NULL || alpnlen != 2 || memcmp("h2", alpn, 2) != 0) { fprintf(stderr, "h2 is not negotiated\n"); diff --git a/examples/libevent-server.c b/examples/libevent-server.c index 06b36b9a..541a7ee5 100644 --- a/examples/libevent-server.c +++ b/examples/libevent-server.c @@ -137,7 +137,7 @@ static int alpn_select_proto_cb(SSL *ssl, const unsigned char **out, return SSL_TLSEXT_ERR_OK; } -#endif // OPENSSL_VERSION_NUMBER >= 0x10002000L +#endif /* OPENSSL_VERSION_NUMBER >= 0x10002000L */ /* Create SSL_CTX. */ static SSL_CTX *create_ssl_ctx(const char *key_file, const char *cert_file) { @@ -180,7 +180,7 @@ static SSL_CTX *create_ssl_ctx(const char *key_file, const char *cert_file) { #if OPENSSL_VERSION_NUMBER >= 0x10002000L SSL_CTX_set_alpn_select_cb(ssl_ctx, alpn_select_proto_cb, NULL); -#endif // OPENSSL_VERSION_NUMBER >= 0x10002000L +#endif /* OPENSSL_VERSION_NUMBER >= 0x10002000L */ return ssl_ctx; } @@ -701,7 +701,7 @@ static void eventcb(struct bufferevent *bev, short events, void *ptr) { if (alpn == NULL) { SSL_get0_alpn_selected(ssl, &alpn, &alpnlen); } -#endif // OPENSSL_VERSION_NUMBER >= 0x10002000L +#endif /* OPENSSL_VERSION_NUMBER >= 0x10002000L */ if (alpn == NULL || alpnlen != 2 || memcmp("h2", alpn, 2) != 0) { fprintf(stderr, "%s h2 is not negotiated\n", session_data->client_addr);