servern now get a topdomain other than NULL

This commit is contained in:
Bjorn Andersson 2007-02-04 22:38:07 +00:00
parent 0fd3d9e62e
commit 46d3053540
2 changed files with 3 additions and 11 deletions

View File

@ -39,16 +39,8 @@
static int decodepacket(const char*, char*, int);
static char *topdomain;
/* XXX: only used from server, remove! */
void
dns_set_topdomain(const char *domain)
{
topdomain = strdup(domain);
}
/* XXX: remove this (used by server) and make topdomain static in iodine[d].c */
extern char *topdomain;
int
dns_encode(char *buf, size_t buflen, struct query *q, qr_t qr, char *data, size_t datalen)

View File

@ -44,7 +44,7 @@ struct packet packetbuf;
struct packet outpacket;
int outid;
static char *topdomain;
char *topdomain;
struct query q;