summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2013-11-23 22:33:05 -0800
committerRich Felker <dalias@aerifal.cx>2013-11-24 09:39:30 -0500
commit642936d6dd22b99534cab4099deea8d6ceefeea0 (patch)
treefe3a4394c805b8a79bf3ce3584f4172191217072
parent22f29bfebe04ac07bc1907406137fcbd373ede36 (diff)
downloadmusl-642936d6dd22b99534cab4099deea8d6ceefeea0.tar.gz
Fix dn_comp prototype and add stub
This function is used by ping6 from iputils.
-rw-r--r--include/resolv.h2
-rw-r--r--src/network/dn_comp.c9
2 files changed, 10 insertions, 1 deletions
diff --git a/include/resolv.h b/include/resolv.h
index 259e4bc1..09fcfdfe 100644
--- a/include/resolv.h
+++ b/include/resolv.h
@@ -133,7 +133,7 @@ int res_querydomain(const char *, const char *, int, int, unsigned char *, int);
int res_search(const char *, int, int, unsigned char *, int);
int res_mkquery(int, const char *, int, int, char *, int, struct rrec *, char *, int);
int res_send(const char *, int, char *, int);
-int dn_comp(unsigned char *, unsigned char *, int, unsigned char **, unsigned char *, unsigned char **);
+int dn_comp(const char *, unsigned char *, int, unsigned char **, unsigned char **);
int dn_expand(const unsigned char *, const unsigned char *, const unsigned char *, char *, int);
int dn_skipname(const unsigned char *, const unsigned char *);
diff --git a/src/network/dn_comp.c b/src/network/dn_comp.c
new file mode 100644
index 00000000..4f4452aa
--- /dev/null
+++ b/src/network/dn_comp.c
@@ -0,0 +1,9 @@
+#include <resolv.h>
+#include "libc.h"
+
+int __dn_comp(const char *src, unsigned char *dst, int space, unsigned char **dnptrs, unsigned char **lastdnptr)
+{
+ return -1;
+}
+
+weak_alias(__dn_comp, dn_comp);