about summary refs log tree commit diff
path: root/resolv/resolv-deprecated.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/resolv-deprecated.c
parent08d4a98070c4c4f69c6d04f483d105121effba08 (diff)
downloadglibc-762a2b2d341a9d6a4ea088479616907c5b4e9a7b.tar.gz
glibc-762a2b2d341a9d6a4ea088479616907c5b4e9a7b.tar.xz
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/resolv-deprecated.c')
-rw-r--r--resolv/resolv-deprecated.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/resolv/resolv-deprecated.c b/resolv/resolv-deprecated.c
index cbd1078dc2..d8344f8f39 100644
--- a/resolv/resolv-deprecated.c
+++ b/resolv/resolv-deprecated.c
@@ -33,3 +33,9 @@ ns_makecanon (const char *src, char *dst, size_t dstsize)
 {
   return __libc_ns_makecanon (src, dst, dstsize);
 }
+
+int
+ns_samename (const char *a, const char *b)
+{
+  return __libc_ns_samename (a, b);
+}