aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/c-ares/src/lib/legacy/ares_expand_string.c
diff options
context:
space:
mode:
authorAlexander Smirnov <alex@ydb.tech>2024-10-19 17:59:18 +0000
committerAlexander Smirnov <alex@ydb.tech>2024-10-19 17:59:18 +0000
commitceddbfe68f6ec7949a4062716c8f9840a59c6888 (patch)
treeabfecadbb9c1e5aea40701dd20d902cb7bccd962 /contrib/libs/c-ares/src/lib/legacy/ares_expand_string.c
parent07f2e60d02d95eab14a86a4b9469db1af7795001 (diff)
parentd920c750e476fa2dc80c45f990d9456b1afeadd1 (diff)
downloadydb-ceddbfe68f6ec7949a4062716c8f9840a59c6888.tar.gz
Merge branch 'rightlib' into mergelibs-241019-1758
Diffstat (limited to 'contrib/libs/c-ares/src/lib/legacy/ares_expand_string.c')
-rw-r--r--contrib/libs/c-ares/src/lib/legacy/ares_expand_string.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/contrib/libs/c-ares/src/lib/legacy/ares_expand_string.c b/contrib/libs/c-ares/src/lib/legacy/ares_expand_string.c
index b3e99daa54..e1deb1932f 100644
--- a/contrib/libs/c-ares/src/lib/legacy/ares_expand_string.c
+++ b/contrib/libs/c-ares/src/lib/legacy/ares_expand_string.c
@@ -43,7 +43,7 @@ ares_status_t ares_expand_string_ex(const unsigned char *encoded,
unsigned char **s, size_t *enclen)
{
ares_status_t status;
- ares__buf_t *buf = NULL;
+ ares_buf_t *buf = NULL;
size_t start_len;
size_t len = 0;
@@ -62,28 +62,28 @@ ares_status_t ares_expand_string_ex(const unsigned char *encoded,
*s = NULL;
}
- buf = ares__buf_create_const(abuf, alen);
+ buf = ares_buf_create_const(abuf, alen);
if (buf == NULL) {
return ARES_ENOMEM;
}
- status = ares__buf_set_position(buf, (size_t)(encoded - abuf));
+ status = ares_buf_set_position(buf, (size_t)(encoded - abuf));
if (status != ARES_SUCCESS) {
goto done;
}
- start_len = ares__buf_len(buf);
- status = ares__buf_parse_dns_binstr(buf, ares__buf_len(buf), s, &len);
+ start_len = ares_buf_len(buf);
+ status = ares_buf_parse_dns_binstr(buf, ares_buf_len(buf), s, &len);
/* hrm, no way to pass back 'len' with the prototype */
if (status != ARES_SUCCESS) {
goto done;
}
- *enclen = start_len - ares__buf_len(buf);
+ *enclen = start_len - ares_buf_len(buf);
done:
- ares__buf_destroy(buf);
+ ares_buf_destroy(buf);
if (status == ARES_EBADNAME || status == ARES_EBADRESP) {
status = ARES_EBADSTR;
}