git: 8b223768d19d - main - bsnmpd/tools/libbsnmptools: Fix typos
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 02 Jun 2023 02:33:49 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=8b223768d19d2b0f0d544daf81553c2cb7293f10 commit 8b223768d19d2b0f0d544daf81553c2cb7293f10 Author: Elyes Haouas <ehaouas@noos.fr> AuthorDate: 2023-06-01 23:41:32 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2023-06-02 02:33:39 +0000 bsnmpd/tools/libbsnmptools: Fix typos Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/653 --- usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c | 2 +- usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.h | 4 ++-- usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c index abee9c231089..dff476a4cca0 100644 --- a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c +++ b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c @@ -288,7 +288,7 @@ enum_pair_insert(struct enum_pairs *headp, int32_t enum_val, char *enum_str) /* * Insert an entry in a list - entries are lexicographicaly order by asn_oid. * Returns 1 on success, -1 if list is not initialized, 0 if a matching oid already - * exists. Error cheking is left to calling function. + * exists. Error checking is left to calling function. */ static int snmp_mapping_insert(struct snmp_mapping *headp, struct snmp_oid2str *entry) diff --git a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.h b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.h index fd066762ad7d..8ad17cd4b1b5 100644 --- a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.h +++ b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.h @@ -39,14 +39,14 @@ /* * 11 bytes - octets that represent DateAndTime Textual convention - * and the size of string used to diplay that. + * and the size of string used to display that. */ #define SNMP_DATETIME_OCTETS 11 #define SNMP_DATETIME_STRSZ 32 /* * 6 bytes - octets that represent PhysAddress Textual convention - * and the size of string used to diplay that. + * and the size of string used to display that. */ #define SNMP_PHYSADDR_OCTETS 6 #define SNMP_PHYSADDR_STRSZ 19 diff --git a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c index bd2034a0f156..9dc2f890ac7f 100644 --- a/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c +++ b/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c @@ -52,7 +52,7 @@ #include "bsnmptc.h" #include "bsnmptools.h" -/* Internal varibale to turn on library debugging for testing and to +/* Internal variable to turn on library debugging for testing and to * find bugs. It is not exported via the header file. * XXX should we cover it by some #ifdef BSNMPTOOLS_DEBUG? */ int _bsnmptools_debug = 0; @@ -1340,7 +1340,7 @@ snmp_suboid_pop(struct asn_oid *var) } /* - * Parse the command-line provided string into an OID - alocate memory for a new + * Parse the command-line provided string into an OID - allocate memory for a new * snmp object, fill in its fields and insert it in the object list. A * (snmp_verify_inoid_f) function must be provided to validate the input string. */