From 5b27fbe990d868441452c474e5b14e94f8bc8335 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 24 Mar 2007 14:06:51 +0000 Subject: 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 --- networking/dnsd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'networking/dnsd.c') 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 @@ * the first porting of oao' scdns to busybox also. */ +#include #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; } -- cgit v1.2.3