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: check.c,v 1.9 2001/11/16 04:43:04 bwelling Exp $ */
|
||||
/* $Id: check.c,v 1.10 2001/11/30 01:59:02 gson Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@@ -287,7 +287,7 @@ check_zoneconf(cfg_obj_t *zconfig, isc_symtab_t *symtab,
|
||||
*/
|
||||
if (ztype == MASTERZONE || ztype == SLAVEZONE || ztype == STUBZONE) {
|
||||
cfg_obj_t *dialup = NULL;
|
||||
cfg_map_get(zoptions, "dialup", &dialup);
|
||||
(void)cfg_map_get(zoptions, "dialup", &dialup);
|
||||
if (dialup != NULL && cfg_obj_isstring(dialup)) {
|
||||
char *str = cfg_obj_asstring(dialup);
|
||||
for (i = 0;
|
||||
@@ -338,8 +338,8 @@ bind9_check_key(cfg_obj_t *key, isc_log_t *logctx) {
|
||||
cfg_obj_t *secretobj = NULL;
|
||||
const char *keyname = cfg_obj_asstring(cfg_map_getname(key));
|
||||
|
||||
cfg_map_get(key, "algorithm", &algobj);
|
||||
cfg_map_get(key, "secret", &secretobj);
|
||||
(void)cfg_map_get(key, "algorithm", &algobj);
|
||||
(void)cfg_map_get(key, "secret", &secretobj);
|
||||
if (secretobj == NULL || algobj == NULL) {
|
||||
cfg_obj_log(key, logctx, ISC_LOG_ERROR,
|
||||
"key '%s' must have both 'secret' and "
|
||||
@@ -427,7 +427,7 @@ check_viewconf(cfg_obj_t *config, cfg_obj_t *vconfig, dns_rdataclass_t vclass,
|
||||
if (tresult != ISC_R_SUCCESS)
|
||||
return (ISC_R_NOMEMORY);
|
||||
|
||||
cfg_map_get(config, "key", &keys);
|
||||
(void)cfg_map_get(config, "key", &keys);
|
||||
tresult = check_keylist(keys, symtab, logctx);
|
||||
if (tresult == ISC_R_EXISTS)
|
||||
result = ISC_R_FAILURE;
|
||||
@@ -455,7 +455,7 @@ check_viewconf(cfg_obj_t *config, cfg_obj_t *vconfig, dns_rdataclass_t vclass,
|
||||
*/
|
||||
if (vconfig == NULL) {
|
||||
cfg_obj_t *options = NULL;
|
||||
cfg_map_get(config, "options", &options);
|
||||
(void)cfg_map_get(config, "options", &options);
|
||||
if (options != NULL)
|
||||
if (check_forward(options, logctx) != ISC_R_SUCCESS)
|
||||
result = ISC_R_FAILURE;
|
||||
|
Reference in New Issue
Block a user