1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00

nss_dns: Replace local declarations with declarations from a header file

This commit is contained in:
Florian Weimer
2017-04-04 14:36:02 +02:00
parent 75b3a15e07
commit 44f28da7ca
4 changed files with 16 additions and 14 deletions

View File

@ -66,6 +66,7 @@
#include "nsswitch.h"
#include <arpa/inet.h>
#include <arpa/nameser.h>
/* Maximum number of aliases we allow. */
#define MAX_NR_ALIASES 48
@ -92,13 +93,6 @@ typedef union querybuf
u_char buf[MAXPACKET];
} querybuf;
/* These functions are defined in res_comp.c. */
#define NS_MAXCDNAME 255 /* maximum compressed domain name */
extern int __ns_name_ntop (const u_char *, char *, size_t) __THROW;
extern int __ns_name_unpack (const u_char *, const u_char *,
const u_char *, u_char *, size_t) __THROW;
/* Prototypes for local functions. */
static enum nss_status getanswer_r (const querybuf *answer, int anslen,
struct netent *result, char *buffer,