Commit 94296c8d authored by David Lawrence's avatar David Lawrence
Browse files

quiet HP/UX and Solaris compilers by testing "result" variable (as opposed to

"code" constant) against ISC_R_SUCCESS in FAILC() and FAILS() macros.
parent c7868e22
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
isc_log_write(NOTIFY_PROTOCOL_LOGARGS, \ isc_log_write(NOTIFY_PROTOCOL_LOGARGS, \
"notify failed: %s (%s)", \ "notify failed: %s (%s)", \
msg, isc_result_totext(code)); \ msg, isc_result_totext(code)); \
if (code != ISC_R_SUCCESS) goto failure; \ if (result != ISC_R_SUCCESS) goto failure; \
} while (0) } while (0)
/* /*
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
isc_log_write(NOTIFY_PROTOCOL_LOGARGS, \ isc_log_write(NOTIFY_PROTOCOL_LOGARGS, \
"notify error: %s: %s", \ "notify error: %s: %s", \
msg, isc_result_totext(code)); \ msg, isc_result_totext(code)); \
if (code != ISC_R_SUCCESS) goto failure; \ if (result != ISC_R_SUCCESS) goto failure; \
} while (0) } while (0)
/**************************************************************************/ /**************************************************************************/
......
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
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(code)); \
if (code != ISC_R_SUCCESS) goto failure; \ if (result != ISC_R_SUCCESS) goto failure; \
} while (0) } while (0)
/* /*
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
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(code)); \
if (code != 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