diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-07-19 07:55:27 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-07-19 07:56:21 +0200 |
commit | 7131727c6ba451e1c5bf075194c7adc9292906c4 (patch) | |
tree | 97631b5bb76c074351e9d4278b7eeb290835b152 /resolv/resolv-deprecated.c | |
parent | 72a51ac647b2fc33a44434d3d125a844801609ae (diff) | |
download | glibc-7131727c6ba451e1c5bf075194c7adc9292906c4.tar.gz glibc-7131727c6ba451e1c5bf075194c7adc9292906c4.tar.xz glibc-7131727c6ba451e1c5bf075194c7adc9292906c4.zip |
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>
Diffstat (limited to 'resolv/resolv-deprecated.c')
-rw-r--r-- | resolv/resolv-deprecated.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/resolv/resolv-deprecated.c b/resolv/resolv-deprecated.c index 0fe9e4fda6..a2953db963 100644 --- a/resolv/resolv-deprecated.c +++ b/resolv/resolv-deprecated.c @@ -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); +} |