From cd720113a2fc8a781d4e33350b8a2b62857b31d8 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Mon, 19 Jun 2000 18:54:45 +0000 Subject: [PATCH] add missing void prototypes, use ISC_TF to assign a boolean from an expression --- bin/dig/nslookup.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/dig/nslookup.c b/bin/dig/nslookup.c index 8b1e6a93b1..0d98645256 100644 --- a/bin/dig/nslookup.c +++ b/bin/dig/nslookup.c @@ -15,7 +15,7 @@ * SOFTWARE. */ -/* $Id: nslookup.c,v 1.16 2000/06/16 18:00:03 mws Exp $ */ +/* $Id: nslookup.c,v 1.17 2000/06/19 18:54:45 tale Exp $ */ #include @@ -143,7 +143,7 @@ static const char *rtypetext[] = { static void -show_usage() { +show_usage(void) { fputs ( "Usage:\n" , stderr); @@ -650,7 +650,7 @@ addlookup(char *opt) { lookup->doing_xfr = ISC_FALSE; lookup->ixfr_serial = 0; lookup->defname = ISC_FALSE; - lookup->trace = (trace || ns_search_only); + lookup->trace = ISC_TF(trace || ns_search_only); lookup->trace_root = trace; lookup->ns_search_only = ns_search_only; lookup->identify = identify; @@ -677,7 +677,7 @@ addlookup(char *opt) { } static void -flush_server_list() { +flush_server_list(void) { dig_server_t *s, *ps; debug ("flush_lookup_list()"); @@ -708,7 +708,7 @@ setsrv(char *opt) { } static void -get_next_command() { +get_next_command(void) { char input[COMMSIZE]; char *ptr, *arg;