git: de8b490010ad - main - bsnmpd/modules/snmp_hostres: Fix typos

From: Warner Losh <imp_at_FreeBSD.org>
Date: Fri, 02 Jun 2023 02:33:46 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=de8b490010adf3f0b55783ce65812ce748f86259

commit de8b490010adf3f0b55783ce65812ce748f86259
Author:     Elyes Haouas <ehaouas@noos.fr>
AuthorDate: 2023-06-01 23:41:31 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-06-02 02:33:39 +0000

    bsnmpd/modules/snmp_hostres: 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/modules/snmp_hostres/hostres_scalars.c     | 6 +++---
 usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.h        | 4 ++--
 usr.sbin/bsnmpd/modules/snmp_hostres/hostres_storage_tbl.c | 2 +-
 usr.sbin/bsnmpd/modules/snmp_hostres/hostres_swrun_tbl.c   | 4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
index 872b8a5da329..3006629b1f76 100644
--- a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
+++ b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c
@@ -248,7 +248,7 @@ OS_getSystemMaxProcesses(uint32_t *mproc)
 }
 
 /*
- * Get the physical memeory size in Kbytes.
+ * Get the physical memory size in Kbytes.
  * Returns SNMP error code.
  */
 static int
@@ -342,7 +342,7 @@ OS_setSystemDate(const struct timeval *timeval_to_set)
 }
 
 /*
- * prototype of this function was genrated by gensnmptree tool in header file
+ * prototype of this function was generated by gensnmptree tool in header file
  * hostres_tree.h
  * Returns SNMP_ERR_NOERROR on success
  */
@@ -437,7 +437,7 @@ op_hrSystem(struct snmp_context *ctx, struct snmp_value *value,
 }
 
 /*
- * prototype of this function was genrated by gensnmptree tool
+ * prototype of this function was generated by gensnmptree tool
  * in the header file hostres_tree.h
  * Returns SNMP_ERR_NOERROR on success
  */
diff --git a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.h b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.h
index 5c11573df198..53ad3eed3638 100644
--- a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.h
+++ b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.h
@@ -127,7 +127,7 @@ struct device_entry {
 	uint32_t	errors;
 
 #define	HR_DEVICE_FOUND		0x001
-	/* not dectected by libdevice, so don't try to refresh it*/
+	/* not detected by libdevice, so don't try to refresh it*/
 #define	HR_DEVICE_IMMUTABLE	0x002
 
 	/* next 3 are not from the SNMP mib table, only to be used internally */
@@ -210,7 +210,7 @@ const struct asn_oid *fs_get_type(const struct statfs *);
  * refreshing hrFSTable by refreshing hrStorageTable.
  * When one entry "of type" fs from hrStorageTable is refreshed
  * then the corresponding entry from hrFSTable is refreshed
- * FS_tbl_pre_refresh_v() is called  before refeshing fs part of hrStorageTable
+ * FS_tbl_pre_refresh_v() is called  before refreshing fs part of hrStorageTable
  */
 void fs_tbl_pre_refresh(void);
 void fs_tbl_process_statfs_entry(const struct statfs *, int32_t);
diff --git a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_storage_tbl.c b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_storage_tbl.c
index f7b6537c289d..70ae55aa3cbf 100644
--- a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_storage_tbl.c
+++ b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_storage_tbl.c
@@ -56,7 +56,7 @@
 #include "hostres_oid.h"
 #include "hostres_tree.h"
 
-/* maximum length for descritpion string according to MIB */
+/* maximum length for description string according to MIB */
 #define	SE_DESC_MLEN	(255 + 1)
 
 /*
diff --git a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_swrun_tbl.c b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_swrun_tbl.c
index 4cb0fc323139..41bbc18b0c60 100644
--- a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_swrun_tbl.c
+++ b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_swrun_tbl.c
@@ -548,7 +548,7 @@ invalidate_swrun_entry(struct swrun_entry *entry, int commit)
 }
 
 /**
- * Popuplate the hrSWRunTable.
+ * Populate the hrSWRunTable.
  */
 void
 init_swrun_tbl(void)
@@ -575,7 +575,7 @@ fini_swrun_tbl(void)
 /*
  * This is the implementation for a generated (by a SNMP tool)
  * function prototype, see hostres_tree.h
- * It hanldes the SNMP operations for hrSWRunTable
+ * It handles the SNMP operations for hrSWRunTable
  */
 int
 op_hrSWRunTable(struct snmp_context *ctx __unused, struct snmp_value *value,