1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

resolv: Move res_queriesmatch to its own file and into libc

And reformat it to GNU style.

The treatment of this function matches res_nameinquery, for the
reasons stated there.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
Florian Weimer
2021-07-19 07:55:27 +02:00
parent 72a51ac647
commit 7131727c6b
6 changed files with 146 additions and 60 deletions

View File

@ -47,3 +47,10 @@ res_nameinquery (const char *name, int type, int class,
{
return __libc_res_nameinquery (name, type, class, buf, eom);
}
int
res_queriesmatch (const unsigned char *buf1, const unsigned char *eom1,
const unsigned char *buf2, const unsigned char *eom2)
{
return __libc_res_queriesmatch (buf1, eom1, buf2, eom2);
}