Commit 55372707 authored by David Lawrence's avatar David Lawrence
Browse files

one more macro (FAIL()) where ISC_R_SUCCESS needed to be tested against a

variable instead of a constant.
parent 826c281a
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
#define FAIL(code) \ #define FAIL(code) \
do { \ do { \
result = (code); \ result = (code); \
if (code != ISC_R_SUCCESS) goto failure; \ if (result != ISC_R_SUCCESS) goto failure; \
} while (0) } while (0)
/* /*
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
result = (code); \ result = (code); \
isc_log_write(UPDATE_PROTOCOL_LOGARGS, \ isc_log_write(UPDATE_PROTOCOL_LOGARGS, \
"dynamic update failed: %s (%s)", \ "dynamic update failed: %s (%s)", \
msg, isc_result_totext(code)); \ msg, isc_result_totext(result)); \
if (result != ISC_R_SUCCESS) goto failure; \ if (result != ISC_R_SUCCESS) goto failure; \
} while (0) } while (0)
...@@ -124,7 +124,7 @@ ...@@ -124,7 +124,7 @@
result = (code); \ result = (code); \
isc_log_write(UPDATE_PROTOCOL_LOGARGS, \ isc_log_write(UPDATE_PROTOCOL_LOGARGS, \
"dynamic update error: %s: %s", \ "dynamic update error: %s: %s", \
msg, isc_result_totext(code)); \ msg, isc_result_totext(result)); \
if (result != ISC_R_SUCCESS) goto failure; \ if (result != ISC_R_SUCCESS) goto failure; \
} while (0) } while (0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment