summaryrefslogtreecommitdiff
path: root/networking/dnsd.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-01-11 17:20:00 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-01-11 17:20:00 +0000
commitf7996f3b700a22797565e9aa57e251e6e3ac1e4d (patch)
treeaf4e797eef0a65f4e3dba94b325da0ec08452d36 /networking/dnsd.c
parent3821fb13ea404d243115ff8ec161273b62826513 (diff)
downloadbusybox-w32-f7996f3b700a22797565e9aa57e251e6e3ac1e4d.tar.gz
busybox-w32-f7996f3b700a22797565e9aa57e251e6e3ac1e4d.tar.bz2
busybox-w32-f7996f3b700a22797565e9aa57e251e6e3ac1e4d.zip
Trailing whitespace removal over entire tree
Diffstat (limited to 'networking/dnsd.c')
-rw-r--r--networking/dnsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/dnsd.c b/networking/dnsd.c
index 6f1ec0ea4..1fb9ccfe5 100644
--- a/networking/dnsd.c
+++ b/networking/dnsd.c
@@ -230,7 +230,7 @@ static int table_lookup(uint16_t type, uint8_t * as, uint8_t * qs)
230 char *p,*q; 230 char *p,*q;
231 q = (char *)&(qs[1]); 231 q = (char *)&(qs[1]);
232 p = &(d->name[1]); 232 p = &(d->name[1]);
233 fprintf(stderr, "\n%s: %d/%d p:%s q:%s %d", 233 fprintf(stderr, "\n%s: %d/%d p:%s q:%s %d",
234 __FUNCTION__, strlen(p), (int)(d->name[0]), p, q, strlen(q)); 234 __FUNCTION__, strlen(p), (int)(d->name[0]), p, q, strlen(q));
235#endif 235#endif
236 if (type == REQ_A) { /* search by host name */ 236 if (type == REQ_A) { /* search by host name */
@@ -247,7 +247,7 @@ static int table_lookup(uint16_t type, uint8_t * as, uint8_t * qs)
247#endif 247#endif
248 return 0; 248 return 0;
249 } 249 }
250 } else 250 } else
251 if (type == REQ_PTR) { /* search by IP-address */ 251 if (type == REQ_PTR) { /* search by IP-address */
252 if (!strncmp((char*)&d->rip[1], (char*)&qs[1], strlen(d->rip)-1)) { 252 if (!strncmp((char*)&d->rip[1], (char*)&qs[1], strlen(d->rip)-1)) {
253 strcpy((char *)as, d->name); 253 strcpy((char *)as, d->name);