]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
remove last remaining reference to _REENTRANT macro and fix DLZ example
authorPetr Špaček <pspacek@isc.org>
Thu, 28 Oct 2021 12:26:09 +0000 (14:26 +0200)
committerPetr Špaček <pspacek@isc.org>
Fri, 29 Oct 2021 07:08:20 +0000 (09:08 +0200)
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.

contrib/dlz/example/dlz_example.c

index 1df74af6f301008de8451bbf5e7bb2a84967b20b..f7b6689c9539255746c4f79c64b95813fbb3ad3e 100644 (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) {