aboutsummaryrefslogtreecommitdiff
path: root/resolv/res_send.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-07-19 07:55:27 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-07-19 07:56:21 +0200
commit762a2b2d341a9d6a4ea088479616907c5b4e9a7b (patch)
treeac4897b58ae029f947c3033444044e1c54ad3389 /resolv/res_send.c
parent08d4a98070c4c4f69c6d04f483d105121effba08 (diff)
downloadglibc-762a2b2d341a9d6a4ea088479616907c5b4e9a7b.tar
glibc-762a2b2d341a9d6a4ea088479616907c5b4e9a7b.tar.gz
glibc-762a2b2d341a9d6a4ea088479616907c5b4e9a7b.tar.bz2
glibc-762a2b2d341a9d6a4ea088479616907c5b4e9a7b.zip
resolv: Move ns_samename into its own file, and into libc
But only as an internal symbol, __libc_ns_samename. The libresolv ABI is preserved. This is because the function is deprecated, and it does not make sense to add new symbol versions for deprecated functions. Also reformat the implementation to GNU style. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'resolv/res_send.c')
-rw-r--r--resolv/res_send.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/resolv/res_send.c b/resolv/res_send.c
index 915fc6d2c6..dfea9fc7fa 100644
--- a/resolv/res_send.c
+++ b/resolv/res_send.c
@@ -224,8 +224,8 @@ res_nameinquery(const char *name, int type, int class,
return (-1);
NS_GET16(ttype, cp);
NS_GET16(tclass, cp);
- if (ttype == type && tclass == class &&
- ns_samename(tname, name) == 1)
+ if (ttype == type && tclass == class
+ && __libc_ns_samename (tname, name) == 1)
return (1);
}
return (0);