2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

style lint

This commit is contained in:
David Lawrence
2000-04-27 22:31:20 +00:00
parent 8a0ba20b16
commit bd9d42a1a9
2 changed files with 14 additions and 11 deletions

View File

@@ -51,8 +51,7 @@
static isc_result_t static isc_result_t
t_create(char *db_type, char *origin, char *class, char *cache, 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; int len;
isc_result_t dns_result; isc_result_t dns_result;
isc_boolean_t iscache; isc_boolean_t iscache;
@@ -87,12 +86,12 @@ t_create(char *db_type, char *origin, char *class, char *cache,
return(dns_result); return(dns_result);
} }
dns_result = dns_db_create(mctx, db_type, dns_fixedname_name(&dns_origin), dns_result = dns_db_create(mctx, db_type,
iscache, rdataclass, 0, NULL, db); dns_fixedname_name(&dns_origin),
if (dns_result != ISC_R_SUCCESS) { iscache, rdataclass, 0, NULL, db);
if (dns_result != ISC_R_SUCCESS)
t_info("dns_db_create failed %s\n", t_info("dns_db_create failed %s\n",
dns_result_totext(dns_result)); dns_result_totext(dns_result));
}
return(dns_result); return(dns_result);

View File

@@ -27,7 +27,8 @@
#include <isc/result.h> #include <isc/result.h>
#include <tests/t_api.h> #include <tests/t_api.h>
static void t1(void); static void
t1(void);
/* /*
* adapted from the original mempool_test.c program * adapted from the original mempool_test.c program
@@ -43,7 +44,7 @@ isc_mem_t *mctx;
#define MP2_FILLCNT 25 #define MP2_FILLCNT 25
static int static int
memtest() { memtest(void) {
int nfails; int nfails;
void *items1[50]; void *items1[50];
void *items2[50]; void *items2[50];
@@ -58,7 +59,8 @@ memtest() {
mctx = NULL; mctx = NULL;
isc_result = isc_mem_create(0, 0, &mctx); isc_result = isc_mem_create(0, 0, &mctx);
if (isc_result != ISC_R_SUCCESS) { 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; ++nfails;
return(nfails); return(nfails);
} }
@@ -66,7 +68,8 @@ memtest() {
mp1 = NULL; mp1 = NULL;
isc_result = isc_mempool_create(mctx, 24, &mp1); isc_result = isc_mempool_create(mctx, 24, &mp1);
if (isc_result != ISC_R_SUCCESS) { 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; ++nfails;
return(nfails); return(nfails);
} }
@@ -74,7 +77,8 @@ memtest() {
mp2 = NULL; mp2 = NULL;
isc_result = isc_mempool_create(mctx, 31, &mp2); isc_result = isc_mempool_create(mctx, 31, &mp2);
if (isc_result != ISC_R_SUCCESS) { 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; ++nfails;
return(nfails); return(nfails);
} }