aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2023-06-01 23:41:32 +0000
committerWarner Losh <imp@FreeBSD.org>2023-06-02 02:33:39 +0000
commit8b223768d19d2b0f0d544daf81553c2cb7293f10 (patch)
tree71bb861a1181421ac9befdcc1c20a7057e239233
parentb8b97d31bda194cfcdb9c03a1b53d27dfbd884f0 (diff)
downloadsrc-8b223768d19d2b0f0d544daf81553c2cb7293f10.tar.gz
src-8b223768d19d2b0f0d544daf81553c2cb7293f10.zip
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
-rw-r--r--usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c2
-rw-r--r--usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.h4
-rw-r--r--usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c4
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.
*/