Add status of process
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
BIN=smartdns
|
||||
OBJS_LIB=lib/rbtree.o lib/art.o lib/bitops.o
|
||||
OBJS=smartdns.o fast_ping.o dns_client.o dns_server.o dns.o util.o tlog.o conf.o dns_cache.o $(OBJS_LIB)
|
||||
CFLAGS=-g -O0 -Wall -Wstrict-prototypes -fno-omit-frame-pointer -Wstrict-aliasing
|
||||
CFLAGS=-O2 -Wall -Wstrict-prototypes -fno-omit-frame-pointer -Wstrict-aliasing
|
||||
CFLAGS +=-Iinclude
|
||||
CFLAGS += -DBASE_FILE_NAME=\"$(notdir $<)\"
|
||||
CXXFLAGS=-g -O0 -Wall -std=c++11
|
||||
CXXFLAGS=-O2 -Wall -std=c++11
|
||||
CXXFLAGS +=-Iinclude
|
||||
LDFLAGS += -lpthread
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ int config_bind(char *value)
|
||||
|
||||
int config_server_name(char *value)
|
||||
{
|
||||
strncpy(dns_conf_server_name, value, DNS_MAX_CNAME_LEN);
|
||||
strncpy(dns_conf_server_name, value, DNS_MAX_CONF_CNAME_LEN);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user