summaryrefslogtreecommitdiff
path: root/tests/unit/unit1305.c
diff options
context:
space:
mode:
authorSeonah Moon <seonah1.moon@samsung.com>2022-12-21 10:55:45 +0900
committerSeonah Moon <seonah1.moon@samsung.com>2022-12-21 10:56:12 +0900
commitb16a7a56e08377965863acf50afb7d91f32ba995 (patch)
tree7089ff449de1523c4d094e602251b51e75d23c1b /tests/unit/unit1305.c
parent58f7e70ff869dee66c90b1323e0d5c9f324067b8 (diff)
downloadcurl-b16a7a56e08377965863acf50afb7d91f32ba995.tar.gz
curl-b16a7a56e08377965863acf50afb7d91f32ba995.tar.bz2
curl-b16a7a56e08377965863acf50afb7d91f32ba995.zip
Imported Upstream version 7.86.0upstream/7.86.0
Change-Id: I69742b17b658f837c72674c476b7a93c6965b2dc
Diffstat (limited to 'tests/unit/unit1305.c')
-rw-r--r--tests/unit/unit1305.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/unit/unit1305.c b/tests/unit/unit1305.c
index 8e551c790..a4f70d1d5 100644
--- a/tests/unit/unit1305.c
+++ b/tests/unit/unit1305.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -18,6 +18,8 @@
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
+ * SPDX-License-Identifier: curl
+ *
***************************************************************************/
#include "curlcheck.h"
@@ -52,7 +54,7 @@ static CURLcode unit_setup(void)
return CURLE_OUT_OF_MEMORY;
}
- Curl_init_dnscache(&hp);
+ Curl_init_dnscache(&hp, 7);
return CURLE_OK;
}
@@ -73,7 +75,7 @@ static struct Curl_addrinfo *fake_ai(void)
{
static struct Curl_addrinfo *ai;
static const char dummy[]="dummy";
- size_t namelen = sizeof(dummy); /* including the zero terminator */
+ size_t namelen = sizeof(dummy); /* including the null-terminator */
ai = calloc(1, sizeof(struct Curl_addrinfo) + sizeof(struct sockaddr_in) +
namelen);