mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 22:45:39 +00:00
PRINT_IF_EQUAL() printed even if not equal
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: confctx.c,v 1.109 2000/12/02 00:25:42 gson Exp $ */
|
/* $Id: confctx.c,v 1.110 2000/12/06 20:36:26 gson Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -868,8 +868,10 @@ dns_c_ctx_optionsprint(FILE *fp, int indent, dns_c_options_t *options)
|
|||||||
|
|
||||||
#define PRINT_IF_EQUAL(VAL, STRVAL, FIELD, NAME) \
|
#define PRINT_IF_EQUAL(VAL, STRVAL, FIELD, NAME) \
|
||||||
if (options->FIELD != NULL) { \
|
if (options->FIELD != NULL) { \
|
||||||
dns_c_printtabs(fp, indent + 1); \
|
if ((*options->FIELD) == (VAL)) { \
|
||||||
fprintf(fp, "%s %s;\n", NAME, STRVAL); \
|
dns_c_printtabs(fp, indent + 1); \
|
||||||
|
fprintf(fp, "%s %s;\n", NAME, STRVAL); \
|
||||||
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define PRINT_AS_BOOLEAN(FIELD, NAME) \
|
#define PRINT_AS_BOOLEAN(FIELD, NAME) \
|
||||||
|
Reference in New Issue
Block a user