From bd9d42a1a96bd69199ce04e8890a9070a52c075b Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Thu, 27 Apr 2000 22:31:20 +0000 Subject: [PATCH] style lint --- bin/tests/db/t_db.c | 11 +++++------ bin/tests/mem/t_mem.c | 14 +++++++++----- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/bin/tests/db/t_db.c b/bin/tests/db/t_db.c index 9770ef63e5..13a3bf6afe 100644 --- a/bin/tests/db/t_db.c +++ b/bin/tests/db/t_db.c @@ -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); diff --git a/bin/tests/mem/t_mem.c b/bin/tests/mem/t_mem.c index 64a4653abd..d779c9e94c 100644 --- a/bin/tests/mem/t_mem.c +++ b/bin/tests/mem/t_mem.c @@ -27,7 +27,8 @@ #include #include -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); }