2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

remove last remaining reference to _REENTRANT macro and fix DLZ example

It was used only as guard against unused variable declaration, but the
surrounding code depends on strtok_r being defined unconditionally, so
there is no point in guarding a variable.
Glibc documentation suggests it is obsolete anyway and e.g. Meson build
system decided to ignore it. It seems to be required only by old
Solaris compiler and OpenIndiana uses gcc.
This commit is contained in:
Petr Špaček
2021-10-28 14:26:09 +02:00
parent b2eb166758
commit ed7fe739c4

View File

@@ -692,9 +692,7 @@ modrdataset(struct dlz_example_data *state, const char *name,
char *full_name, *dclass, *type, *data, *ttlstr, *buf;
char absolute[1024];
isc_result_t result;
#if defined(_REENTRANT)
char *saveptr = NULL;
#endif /* defined(_REENTRANT) */
buf = strdup(rdatastr);
if (buf == NULL) {