From a243999f4ccaaa9325d97041efb734e0dbfe08d4 Mon Sep 17 00:00:00 2001 From: Colin Vidal Date: Mon, 16 Dec 2024 15:57:12 +0100 Subject: [PATCH] fixup! Introduction of cfgmgr --- lib/isccfg/cfgmgr.c | 8 ++++---- lib/isccfg/include/isccfg/cfgmgr.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/isccfg/cfgmgr.c b/lib/isccfg/cfgmgr.c index 17071a4264..e84574ad6d 100644 --- a/lib/isccfg/cfgmgr.c +++ b/lib/isccfg/cfgmgr.c @@ -90,9 +90,9 @@ parseid(const char *dbkey) { } /* - * strtoul will stops as soon as it doesn't encounder a - * non-digit number, so no need to get an extra buffer, copy - * the dbkey and add a null byte after the last digit. + * strtoul stops as soon as it doesn't encounter a non-digit + * number, so no need to get an extra buffer, copy the dbkey + * and add a null byte after the last digit. */ id = strtoul(dbkey + idstarts, NULL, 10); ENSURE(id > 0); @@ -124,7 +124,7 @@ cfgmgr_init(void) { } /* - * Using MDB_NOSYNC as it avoid force disk flush after a + * Using MDB_NOSYNC as it avoids force disk flush after a * transaction. It's quicker and in our case we don't need it * as we delete the only link to the inode right away (so disk * corruption doesn't matter: as soon as the process is dead, diff --git a/lib/isccfg/include/isccfg/cfgmgr.h b/lib/isccfg/include/isccfg/cfgmgr.h index 2f0219f93e..7a0bc9ec0c 100644 --- a/lib/isccfg/include/isccfg/cfgmgr.h +++ b/lib/isccfg/include/isccfg/cfgmgr.h @@ -67,7 +67,7 @@ cfgmgr_setval(const char *name, const cfgmgr_val_t *value); * next elements in the list. When the end of the list is reached, * ISC_R_NOMORE is returned. Calls to cfgmgr_getnextlistval name has * to be made in immediate sequence (without intermediate - * cfgmgr_{set,get}val calls) to retreive each list element. + * cfgmgr_{set,get}val calls) to retrieve each list element. */ isc_result_t cfgmgr_getnextlistval(cfgmgr_val_t *value); @@ -127,7 +127,7 @@ isc_result_t cfgmgr_close(void); /* - * Open the top-level clause "name" for reading and writting and + * Open the top-level clause "name" for reading and writing and * returns ISC_R_SUCCESS. If the clause "name" is not found, returns * ISC_R_NOTFOUND. *