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

"code" constant) against ISC_R_SUCCESS in FAILC() and FAILS() macros.
This commit is contained in:
David Lawrence
2000-05-24 18:25:35 +00:00
parent c7868e2262
commit 94296c8d5b
2 changed files with 4 additions and 4 deletions

View File

@@ -93,7 +93,7 @@
isc_log_write(NOTIFY_PROTOCOL_LOGARGS, \
"notify failed: %s (%s)", \
msg, isc_result_totext(code)); \
if (code != ISC_R_SUCCESS) goto failure; \
if (result != ISC_R_SUCCESS) goto failure; \
} while (0)
/*
@@ -107,7 +107,7 @@
isc_log_write(NOTIFY_PROTOCOL_LOGARGS, \
"notify error: %s: %s", \
msg, isc_result_totext(code)); \
if (code != ISC_R_SUCCESS) goto failure; \
if (result != ISC_R_SUCCESS) goto failure; \
} while (0)
/**************************************************************************/

View File

@@ -111,7 +111,7 @@
isc_log_write(UPDATE_PROTOCOL_LOGARGS, \
"dynamic update failed: %s (%s)", \
msg, isc_result_totext(code)); \
if (code != ISC_R_SUCCESS) goto failure; \
if (result != ISC_R_SUCCESS) goto failure; \
} while (0)
/*
@@ -125,7 +125,7 @@
isc_log_write(UPDATE_PROTOCOL_LOGARGS, \
"dynamic update error: %s: %s", \
msg, isc_result_totext(code)); \
if (code != ISC_R_SUCCESS) goto failure; \
if (result != ISC_R_SUCCESS) goto failure; \
} while (0)
/**************************************************************************/