diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-24 14:06:51 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-24 14:06:51 +0000 |
commit | 5b27fbe990d868441452c474e5b14e94f8bc8335 (patch) | |
tree | c6a7e85b1d6d1c8e18089c3f7d83e392cf04448f /networking | |
parent | b5b45a91f0f2d3f57864b49eb3126c9eb6a2b1eb (diff) | |
download | busybox-w32-5b27fbe990d868441452c474e5b14e94f8bc8335.tar.gz busybox-w32-5b27fbe990d868441452c474e5b14e94f8bc8335.tar.bz2 busybox-w32-5b27fbe990d868441452c474e5b14e94f8bc8335.zip |
dc: use common_bufsiz1 for evaluation stack
msh: fix "underscore bug" (a_b=1111 didn't work)
dnsd: openlog(), so that applet's name is logged
Diffstat (limited to 'networking')
-rw-r--r-- | networking/dnsd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/dnsd.c b/networking/dnsd.c index 2cecf6491..c9c7b3a7c 100644 --- a/networking/dnsd.c +++ b/networking/dnsd.c | |||
@@ -17,6 +17,7 @@ | |||
17 | * the first porting of oao' scdns to busybox also. | 17 | * the first porting of oao' scdns to busybox also. |
18 | */ | 18 | */ |
19 | 19 | ||
20 | #include <syslog.h> | ||
20 | #include "busybox.h" | 21 | #include "busybox.h" |
21 | 22 | ||
22 | //#define DEBUG 1 | 23 | //#define DEBUG 1 |
@@ -114,7 +115,6 @@ static void undot(uint8_t * rip) | |||
114 | * Presently the dot is copied into name without | 115 | * Presently the dot is copied into name without |
115 | * converting to a length/string substring for that label. | 116 | * converting to a length/string substring for that label. |
116 | */ | 117 | */ |
117 | |||
118 | static int getfileentry(FILE * fp, struct dns_entry *s) | 118 | static int getfileentry(FILE * fp, struct dns_entry *s) |
119 | { | 119 | { |
120 | unsigned int a,b,c,d; | 120 | unsigned int a,b,c,d; |
@@ -359,6 +359,7 @@ int dnsd_main(int argc, char **argv) | |||
359 | #else | 359 | #else |
360 | xdaemon(1, 0); | 360 | xdaemon(1, 0); |
361 | #endif | 361 | #endif |
362 | openlog(applet_name, LOG_PID, LOG_DAEMON); | ||
362 | logmode = LOGMODE_SYSLOG; | 363 | logmode = LOGMODE_SYSLOG; |
363 | } | 364 | } |
364 | 365 | ||