mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Check return values or cast them to (void), as required by the coding
standards; add exceptions to the coding standards for cases where this is not desirable
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: master.c,v 1.129 2001/11/27 00:55:53 gson Exp $ */
|
||||
/* $Id: master.c,v 1.130 2001/11/30 01:59:11 gson Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@@ -370,7 +370,7 @@ loadctx_destroy(dns_loadctx_t *lctx) {
|
||||
incctx_destroy(lctx->mctx, lctx->inc);
|
||||
|
||||
if (lctx->lex != NULL) {
|
||||
isc_lex_close(lctx->lex);
|
||||
(void)isc_lex_close(lctx->lex);
|
||||
isc_lex_destroy(&lctx->lex);
|
||||
}
|
||||
if (lctx->task != NULL)
|
||||
@@ -715,7 +715,7 @@ generate(dns_loadctx_t *lctx, char *range, char *lhs, char *gtype, char *rhs,
|
||||
result = dns_rdata_fromtext(&rdata, lctx->zclass, type,
|
||||
lctx->lex, ictx->origin, ISC_FALSE,
|
||||
lctx->mctx, &target, callbacks);
|
||||
isc_lex_close(lctx->lex);
|
||||
RUNTIME_CHECK(isc_lex_close(lctx->lex) == ISC_R_SUCCESS);
|
||||
if (result != ISC_R_SUCCESS)
|
||||
goto error_cleanup;
|
||||
|
||||
@@ -857,7 +857,7 @@ load(dns_loadctx_t *lctx) {
|
||||
lctx->inc = ictx->parent;
|
||||
ictx->parent = NULL;
|
||||
incctx_destroy(lctx->mctx, ictx);
|
||||
isc_lex_close(lctx->lex);
|
||||
RUNTIME_CHECK(isc_lex_close(lctx->lex) == ISC_R_SUCCESS);
|
||||
line = isc_lex_getsourceline(lctx->lex);
|
||||
source = isc_lex_getsourcename(lctx->lex);
|
||||
ictx = lctx->inc;
|
||||
@@ -2001,7 +2001,8 @@ commit(dns_rdatacallbacks_t *callbacks, dns_loadctx_t *lctx,
|
||||
return (ISC_R_SUCCESS);
|
||||
do {
|
||||
dns_rdataset_init(&dataset);
|
||||
dns_rdatalist_tordataset(this, &dataset);
|
||||
RUNTIME_CHECK(dns_rdatalist_tordataset(this, &dataset)
|
||||
== ISC_R_SUCCESS);
|
||||
dataset.trust = dns_trust_ultimate;
|
||||
result = ((*callbacks->add)(callbacks->add_private, owner,
|
||||
&dataset));
|
||||
|
Reference in New Issue
Block a user