From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4180 Path: news.gmane.org!not-for-mail From: Michael Forney Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH] Fix dn_comp prototype and add stub Date: Mon, 4 Nov 2013 21:42:34 -0800 Message-ID: <1383630154-2628-1-git-send-email-mforney@mforney.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1383630186 25462 80.91.229.3 (5 Nov 2013 05:43:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Nov 2013 05:43:06 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4184-gllmg-musl=m.gmane.org@lists.openwall.com Tue Nov 05 06:43:12 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 1VdZPy-0005Ey-DT for gllmg-musl@plane.gmane.org; Tue, 05 Nov 2013 06:43:10 +0100 Original-Received: (qmail 7398 invoked by uid 550); 5 Nov 2013 05:43:08 -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 7380 invoked from network); 5 Nov 2013 05:43:06 -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; bh=Aj2Pgyx7V80pnJw+4EUihKgYXZK9P8IPseMooyjaddA=; b=fY5cETHXB8R6WPhWW9ZsUxp+B46eZMlAli8FKu5TPjVS7FbVGQEfc+Zak3eti3dZzj He6uggkZQXfRJhUZIJmSAjaYN1h8lLTjvxuzBj6q0y/q05sVKw/LSfV13NLNr5IeGVUJ jkK2ZCWBT/nrIYPnoznNutBK7NHRGDFN1uwOFdJXg6d0D1tpR9mY39n/vQ6H/WJ/pDWS LxYBMi4hb1+SC9NSst8CZkIAw+pO+5P8tXCQ3iSYSQf6IZ3YA0j4ekbIIgUFt0qblwwq lqc8mqCPwM23wmQ/HJk3dG4V41ZVfw8dP4WrZIaHk9mgOPXhx6KsxsGc/HF9MtJLRRVK mXSg== X-Gm-Message-State: ALoCoQm6IESME7rboCKyB3f3c4jF/3GSiYPteKNo3Pk92eksogvZpgmMJRkPgmTUbxfcm3iBrjp8 X-Received: by 10.236.93.140 with SMTP id l12mr5135444yhf.66.1383630174203; Mon, 04 Nov 2013 21:42:54 -0800 (PST) X-Mailer: git-send-email 1.8.4.2 Xref: news.gmane.org gmane.linux.lib.musl.general:4180 Archived-At: --- This function is used at least by ping6 from iputils, and if there is a header declaration, there should at least be a stub. 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..cfa5d9d 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(unsigned 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..fe31cd7 --- /dev/null +++ b/src/network/dn_comp.c @@ -0,0 +1,9 @@ +#include +#include "libc.h" + +int __dn_comp(unsigned 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