summaryrefslogtreecommitdiffstats
path: root/lib/altsvc.c
diff options
context:
space:
mode:
authorCurl Upstream <curl-library@lists.haxx.se>2023-07-26 06:10:40 (GMT)
committerBrad King <brad.king@kitware.com>2023-08-01 17:55:52 (GMT)
commite2ab2da70a2b390eb9067d45dfa47023b00c5cd7 (patch)
treec0518a6ee938748b9a3232f1504dcdde81a0449e /lib/altsvc.c
parent80cb6a512119ea6f8f8cf480c78e1e32d494e6ca (diff)
downloadCMake-e2ab2da70a2b390eb9067d45dfa47023b00c5cd7.zip
CMake-e2ab2da70a2b390eb9067d45dfa47023b00c5cd7.tar.gz
CMake-e2ab2da70a2b390eb9067d45dfa47023b00c5cd7.tar.bz2
curl 2023-07-26 (50490c06)
Code extracted from: https://github.com/curl/curl.git at commit 50490c0679fcd0e50bb3a8fbf2d9244845652cf0 (curl-8_2_1).
Diffstat (limited to 'lib/altsvc.c')
-rw-r--r--lib/altsvc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/altsvc.c b/lib/altsvc.c
index f812baf..11009d5 100644
--- a/lib/altsvc.c
+++ b/lib/altsvc.c
@@ -424,7 +424,7 @@ static void altsvc_flush(struct altsvcinfo *asi, enum alpnid srcalpnid,
#ifdef DEBUGBUILD
/* to play well with debug builds, we can *set* a fixed time this will
return */
-static time_t debugtime(void *unused)
+static time_t altsvc_debugtime(void *unused)
{
char *timestr = getenv("CURL_TIME");
(void)unused;
@@ -434,7 +434,8 @@ static time_t debugtime(void *unused)
}
return time(NULL);
}
-#define time(x) debugtime(x)
+#undef time
+#define time(x) altsvc_debugtime(x)
#endif
#define ISNEWLINE(x) (((x) == '\n') || (x) == '\r')