summaryrefslogtreecommitdiff
path: root/networking/dnsd.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-03-24 14:06:51 +0000
committerDenis Vlasenko2007-03-24 14:06:51 +0000
commit5b27fbe990d868441452c474e5b14e94f8bc8335 (patch)
treec6a7e85b1d6d1c8e18089c3f7d83e392cf04448f /networking/dnsd.c
parentb5b45a91f0f2d3f57864b49eb3126c9eb6a2b1eb (diff)
downloadbusybox-5b27fbe990d868441452c474e5b14e94f8bc8335.zip
busybox-5b27fbe990d868441452c474e5b14e94f8bc8335.tar.gz
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/dnsd.c')
-rw-r--r--networking/dnsd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/dnsd.c b/networking/dnsd.c
index 2cecf64..c9c7b3a 100644
--- a/networking/dnsd.c
+++ b/networking/dnsd.c
@@ -17,6 +17,7 @@
* the first porting of oao' scdns to busybox also.
*/
+#include <syslog.h>
#include "busybox.h"
//#define DEBUG 1
@@ -114,7 +115,6 @@ static void undot(uint8_t * rip)
* Presently the dot is copied into name without
* converting to a length/string substring for that label.
*/
-
static int getfileentry(FILE * fp, struct dns_entry *s)
{
unsigned int a,b,c,d;
@@ -359,6 +359,7 @@ int dnsd_main(int argc, char **argv)
#else
xdaemon(1, 0);
#endif
+ openlog(applet_name, LOG_PID, LOG_DAEMON);
logmode = LOGMODE_SYSLOG;
}