From 553727079c69cacf56aaa8fd2722d04bfbbc8ce1 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Wed, 24 May 2000 21:41:14 +0000 Subject: [PATCH] one more macro (FAIL()) where ISC_R_SUCCESS needed to be tested against a variable instead of a constant. --- bin/named/update.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/named/update.c b/bin/named/update.c index e7ae384676..afa1aa5c43 100644 --- a/bin/named/update.c +++ b/bin/named/update.c @@ -97,7 +97,7 @@ #define FAIL(code) \ do { \ result = (code); \ - if (code != ISC_R_SUCCESS) goto failure; \ + if (result != ISC_R_SUCCESS) goto failure; \ } while (0) /* @@ -110,7 +110,7 @@ result = (code); \ isc_log_write(UPDATE_PROTOCOL_LOGARGS, \ "dynamic update failed: %s (%s)", \ - msg, isc_result_totext(code)); \ + msg, isc_result_totext(result)); \ if (result != ISC_R_SUCCESS) goto failure; \ } while (0) @@ -124,7 +124,7 @@ result = (code); \ isc_log_write(UPDATE_PROTOCOL_LOGARGS, \ "dynamic update error: %s: %s", \ - msg, isc_result_totext(code)); \ + msg, isc_result_totext(result)); \ if (result != ISC_R_SUCCESS) goto failure; \ } while (0)