From c4aaa6bc3f7e8bd823f7279c78583384e7617d93 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 2 Dec 1997 19:00:18 +0000 Subject: asyncdns.c: Removed warning when compiling with -DSYNC_DNS. nameelect.c: Tidied up settings of work->ServerType when unbecoming things. nmbd.c: Fixed pidFile warning. server.c: Fixed pidFile warning. Jeremy. (This used to be commit 94d53dcac5d06e48be5cea9d54625da795f62d20) --- source3/nmbd/asyncdns.c | 1 - source3/nmbd/nmbd.c | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/nmbd') diff --git a/source3/nmbd/asyncdns.c b/source3/nmbd/asyncdns.c index 3d1b3cc995..c87e090754 100644 --- a/source3/nmbd/asyncdns.c +++ b/source3/nmbd/asyncdns.c @@ -266,7 +266,6 @@ BOOL queue_dns_query(struct packet_struct *p,struct nmb_name *question, BOOL queue_dns_query(struct packet_struct *p,struct nmb_name *question, struct name_record **n) { - int name_type = question->name_type; char *qname = question->name; struct in_addr dns_ip; diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c index 1e4a2d9a79..a34e2caf42 100644 --- a/source3/nmbd/nmbd.c +++ b/source3/nmbd/nmbd.c @@ -465,7 +465,9 @@ static void usage(char *pname) int opt; extern FILE *dbf; extern char *optarg; - char pidFile[100] = { 0 }; + char pidFile[100]; + + *pidFile = '\0'; global_nmb_port = NMB_PORT; *host_file = 0; -- cgit