aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-09-25 12:13:43 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-09-25 12:13:43 +0200
commit218a62a6ce4fc0b0463f9e64e7a89afa4d151d16 (patch)
treeafd3b3bf40fb4702bb3fd3c9907a86b3ad3318e7
parenta4c6520991a1be63fe8a7120be2ffe8c906be3d5 (diff)
altsvc: correct the #ifdef for the ngtcp2 backend
-rw-r--r--lib/altsvc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/altsvc.c b/lib/altsvc.c
index 689991b63..a961e5c05 100644
--- a/lib/altsvc.c
+++ b/lib/altsvc.c
@@ -54,7 +54,7 @@ static enum alpnid alpn2alpnid(char *name)
return ALPN_h1;
if(strcasecompare(name, "h2"))
return ALPN_h2;
-#if (defined(USE_QUICHE) || defined(USE_NGHTTP2)) && !defined(UNITTESTS)
+#if (defined(USE_QUICHE) || defined(USE_NGTCP2)) && !defined(UNITTESTS)
if(strcasecompare(name, "h3-23"))
return ALPN_h3;
#else
@@ -73,7 +73,7 @@ const char *Curl_alpnid2str(enum alpnid id)
case ALPN_h2:
return "h2";
case ALPN_h3:
-#if (defined(USE_QUICHE) || defined(USE_NGHTTP2)) && !defined(UNITTESTS)
+#if (defined(USE_QUICHE) || defined(USE_NGTCP2)) && !defined(UNITTESTS)
return "h3-23";
#else
return "h3";