summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bind/bin/dig/dig.c
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2020-01-09 14:18:29 +0000
committerflorian <florian@openbsd.org>2020-01-09 14:18:29 +0000
commit41167cd8bc04424f91ae678f20274da3fc9edb62 (patch)
tree7f29915d631f25ced9618cfc6b7529b23ce53f6e /usr.sbin/bind/bin/dig/dig.c
parentunifdef gss-api: (diff)
downloadwireguard-openbsd-41167cd8bc04424f91ae678f20274da3fc9edb62.tar.xz
wireguard-openbsd-41167cd8bc04424f91ae678f20274da3fc9edb62.zip
Assorted unifdefs:
#define ISC_PLATFORM_NEEDSYSSELECTH 1 #define ISC_PLATFORM_HAVESTATNSEC 1 #define ISC_PLATFORM_RLIMITTYPE rlim_t #define ISC_PLATFORM_HAVELONGLONG 1 #undef ISC_PLATFORM_BRACEPTHREADONCEINIT #undef ISC_PLATFORM_USEDECLSPEC #define ISC_PLATFORM_HAVESYSUNH 1 #define ISC_PLATFORM_HAVESTRINGSH 1 #define ISC_PLATFORM_WANTAES 1 #define ISC_PLATFORM_USESIT 1 #define LIBISC_EXTERNAL_DATA #define LIBDNS_EXTERNAL_DATA #define LIBISCCFG_EXTERNAL_DATA #define LIBBIND9_EXTERNAL_DATA #define LIBTESTS_EXTERNAL_DATA prodding deraadt@
Diffstat (limited to 'usr.sbin/bind/bin/dig/dig.c')
-rw-r--r--usr.sbin/bind/bin/dig/dig.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/usr.sbin/bind/bin/dig/dig.c b/usr.sbin/bind/bin/dig/dig.c
index 6395b5176b5..e4dfac8eb89 100644
--- a/usr.sbin/bind/bin/dig/dig.c
+++ b/usr.sbin/bind/bin/dig/dig.c
@@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: dig.c,v 1.32 2020/01/09 13:52:22 florian Exp $ */
+/* $Id: dig.c,v 1.33 2020/01/09 14:18:29 florian Exp $ */
/*! \file */
@@ -76,9 +76,7 @@ static char *argv0;
static int addresscount = 0;
static char domainopt[DNS_NAME_MAXTEXT];
-#ifdef ISC_PLATFORM_USESIT
static char sitvalue[256];
-#endif
static isc_boolean_t short_form = ISC_FALSE, printcmd = ISC_TRUE,
ip6_int = ISC_FALSE, plusquest = ISC_FALSE, pluscomm = ISC_FALSE,
@@ -721,9 +719,7 @@ plus_option(const char *option, isc_boolean_t is_batchfile,
char *cmd, *value, *ptr, *code;
isc_uint32_t num;
isc_boolean_t state = ISC_TRUE;
-#if defined(DIG_SIGCHASE) || defined(ISC_PLATFORM_USESIT)
size_t n;
-#endif
strlcpy(option_store, option, sizeof(option_store));
ptr = option_store;
@@ -841,23 +837,19 @@ plus_option(const char *option, isc_boolean_t is_batchfile,
printcmd = state;
break;
case 'o': /* comments */
-#ifdef ISC_PLATFORM_USESIT
switch (cmd[2]) {
case 'o':
FULLCHECK("cookie");
goto sit;
case 'm':
-#endif
FULLCHECK("comments");
lookup->comments = state;
if (lookup == default_lookup)
pluscomm = state;
-#ifdef ISC_PLATFORM_USESIT
break;
default:
goto invalid_option;
}
-#endif
break;
case 'r':
FULLCHECK("crypto");
@@ -1185,7 +1177,6 @@ plus_option(const char *option, isc_boolean_t is_batchfile,
goto invalid_option;
}
break;
-#if defined(DIG_SIGCHASE) || defined(ISC_PLATFORM_USESIT)
case 'i':
switch (cmd[2]) {
#ifdef DIG_SIGCHASE
@@ -1196,7 +1187,6 @@ plus_option(const char *option, isc_boolean_t is_batchfile,
lookup->dnssec = ISC_TRUE;
break;
#endif
-#ifdef ISC_PLATFORM_USESIT
case 't': /* sit */
FULLCHECK("sit");
sit:
@@ -1212,12 +1202,10 @@ plus_option(const char *option, isc_boolean_t is_batchfile,
} else
lookup->sitvalue = NULL;
break;
-#endif
default:
goto invalid_option;
}
break;
-#endif
case 'p': /* split */
FULLCHECK("split");
if (value != NULL && !state)