From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4275 Path: news.gmane.org!not-for-mail From: Michael Forney Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH v2] Fix dn_comp prototype and add stub Date: Sat, 23 Nov 2013 22:33:05 -0800 Message-ID: <1385274785-30563-1-git-send-email-mforney@mforney.org> References: <20131123212759.GZ24286@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1385274819 8993 80.91.229.3 (24 Nov 2013 06:33:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Nov 2013 06:33:39 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4279-gllmg-musl=m.gmane.org@lists.openwall.com Sun Nov 24 07:33:45 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1VkTGK-0004nJ-Ib for gllmg-musl@plane.gmane.org; Sun, 24 Nov 2013 07:33:44 +0100 Original-Received: (qmail 32510 invoked by uid 550); 24 Nov 2013 06:33:44 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 32501 invoked from network); 24 Nov 2013 06:33:43 -0000 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=Mdk7NDqqaFuuyXSwe8qrfX3aOEg8T4DkI02X9DCqnZY=; b=mwex9cyEPBcmkbsgmaEYTc7scOputII+8h52jLUedhN7OvexZRZVX/ofkPC0kWSCrW jQOUtE2HJqB3U9p3Q/R7nLcanzzhLcw4qf9x5yMnohSsCa4b4cJiwFAW1abR4kz6i6hK ueNUd5Ea6u37Vt5FzhRIiSJxsliR2bOJfh52VB+SAt++53Y7QSn07r7wkZx2uoBNzNV2 09fjgsJv3exM8HZ8hxUxHcbPr7P9bSLUobxAs0hdwKgHiMy9ZSg19qPi4UWllPS9FZES x1kpaIGXEiiJCX+pkTSUDRubLhbuyURF6kkWZsaOqRU0mQ8eK+QNzBnLFArADij47lGu v8IQ== X-Gm-Message-State: ALoCoQlLxP4Me5QGpp/FokrjpV+DFpFQBY//L4iHO3oIGT4w0YRDLKYOmfeQ6FYBtpMS7/gr96mZ X-Received: by 10.236.129.19 with SMTP id g19mr160613yhi.120.1385274812118; Sat, 23 Nov 2013 22:33:32 -0800 (PST) X-Mailer: git-send-email 1.8.4.2 In-Reply-To: <20131123212759.GZ24286@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:4275 Archived-At: This function is used by ping6 from iputils. --- include/resolv.h | 2 +- src/network/dn_comp.c | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 src/network/dn_comp.c diff --git a/include/resolv.h b/include/resolv.h index 259e4bc..09fcfdf 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 0000000..4f4452a --- /dev/null +++ b/src/network/dn_comp.c @@ -0,0 +1,9 @@ +#include +#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); -- 1.8.4.2