summaryrefslogtreecommitdiff
path: root/networking/dnsd.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-01-20 01:47:44 +0000
committerDenis Vlasenko2007-01-20 01:47:44 +0000
commit91f20ab510a6ddab49dd89f8c8876912d4537be0 (patch)
treef5cd515adbbc035cbc6b65df7569fcd04545a2b3 /networking/dnsd.c
parente0554434126541e943bf0f1d90a475252392bf6f (diff)
downloadbusybox-91f20ab510a6ddab49dd89f8c8876912d4537be0.zip
busybox-91f20ab510a6ddab49dd89f8c8876912d4537be0.tar.gz
fixes for amd64 compilation
Diffstat (limited to 'networking/dnsd.c')
-rw-r--r--networking/dnsd.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/networking/dnsd.c b/networking/dnsd.c
index c3bd161..71f5042 100644
--- a/networking/dnsd.c
+++ b/networking/dnsd.c
@@ -184,23 +184,24 @@ static int table_lookup(uint16_t type, uint8_t * as, uint8_t * qs)
struct dns_entry *d=dnsentry;
do {
-#ifdef DEBUG
+#if DEBUG
char *p,*q;
q = (char *)&(qs[1]);
p = &(d->name[1]);
fprintf(stderr, "\n%s: %d/%d p:%s q:%s %d",
- __FUNCTION__, strlen(p), (int)(d->name[0]), p, q, strlen(q));
+ __FUNCTION__, (int)strlen(p), (int)(d->name[0]),
+ p, q, (int)strlen(q));
#endif
if (type == REQ_A) { /* search by host name */
for (i = 1; i <= (int)(d->name[0]); i++)
if (tolower(qs[i]) != d->name[i])
break;
if (i > (int)(d->name[0])) {
-#ifdef DEBUG
+#if DEBUG
fprintf(stderr, " OK");
#endif
strcpy((char *)as, d->ip);
-#ifdef DEBUG
+#if DEBUG
fprintf(stderr, " as:%s\n", as);
#endif
return 0;