mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
style lint
This commit is contained in:
parent
8a0ba20b16
commit
bd9d42a1a9
@ -51,8 +51,7 @@
|
||||
|
||||
static isc_result_t
|
||||
t_create(char *db_type, char *origin, char *class, char *cache,
|
||||
isc_mem_t *mctx, dns_db_t **db) {
|
||||
|
||||
isc_mem_t *mctx, dns_db_t **db) {
|
||||
int len;
|
||||
isc_result_t dns_result;
|
||||
isc_boolean_t iscache;
|
||||
@ -87,12 +86,12 @@ t_create(char *db_type, char *origin, char *class, char *cache,
|
||||
return(dns_result);
|
||||
}
|
||||
|
||||
dns_result = dns_db_create(mctx, db_type, dns_fixedname_name(&dns_origin),
|
||||
iscache, rdataclass, 0, NULL, db);
|
||||
if (dns_result != ISC_R_SUCCESS) {
|
||||
dns_result = dns_db_create(mctx, db_type,
|
||||
dns_fixedname_name(&dns_origin),
|
||||
iscache, rdataclass, 0, NULL, db);
|
||||
if (dns_result != ISC_R_SUCCESS)
|
||||
t_info("dns_db_create failed %s\n",
|
||||
dns_result_totext(dns_result));
|
||||
}
|
||||
|
||||
return(dns_result);
|
||||
|
||||
|
@ -27,7 +27,8 @@
|
||||
#include <isc/result.h>
|
||||
#include <tests/t_api.h>
|
||||
|
||||
static void t1(void);
|
||||
static void
|
||||
t1(void);
|
||||
|
||||
/*
|
||||
* adapted from the original mempool_test.c program
|
||||
@ -43,7 +44,7 @@ isc_mem_t *mctx;
|
||||
#define MP2_FILLCNT 25
|
||||
|
||||
static int
|
||||
memtest() {
|
||||
memtest(void) {
|
||||
int nfails;
|
||||
void *items1[50];
|
||||
void *items2[50];
|
||||
@ -58,7 +59,8 @@ memtest() {
|
||||
mctx = NULL;
|
||||
isc_result = isc_mem_create(0, 0, &mctx);
|
||||
if (isc_result != ISC_R_SUCCESS) {
|
||||
t_info("isc_mem_create failed %s\n", isc_result_totext(isc_result));
|
||||
t_info("isc_mem_create failed %s\n",
|
||||
isc_result_totext(isc_result));
|
||||
++nfails;
|
||||
return(nfails);
|
||||
}
|
||||
@ -66,7 +68,8 @@ memtest() {
|
||||
mp1 = NULL;
|
||||
isc_result = isc_mempool_create(mctx, 24, &mp1);
|
||||
if (isc_result != ISC_R_SUCCESS) {
|
||||
t_info("isc_mempool_create failed %s\n", isc_result_totext(isc_result));
|
||||
t_info("isc_mempool_create failed %s\n",
|
||||
isc_result_totext(isc_result));
|
||||
++nfails;
|
||||
return(nfails);
|
||||
}
|
||||
@ -74,7 +77,8 @@ memtest() {
|
||||
mp2 = NULL;
|
||||
isc_result = isc_mempool_create(mctx, 31, &mp2);
|
||||
if (isc_result != ISC_R_SUCCESS) {
|
||||
t_info("isc_mempool_create failed %s\n", isc_result_totext(isc_result));
|
||||
t_info("isc_mempool_create failed %s\n",
|
||||
isc_result_totext(isc_result));
|
||||
++nfails;
|
||||
return(nfails);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user