aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2023-06-01 23:41:31 +0000
committerWarner Losh <imp@FreeBSD.org>2023-06-02 02:33:39 +0000
commitde8b490010adf3f0b55783ce65812ce748f86259 (patch)
tree870ab9b743b49f93437af5e60ac5f351c761ecf2
parent8c9946be5265a7d5913e4467a3ce9fc47fe24c5b (diff)
downloadsrc-de8b490010adf3f0b55783ce65812ce748f86259.tar.gz
src-de8b490010adf3f0b55783ce65812ce748f86259.zip
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
-rw-r--r--usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c6
-rw-r--r--usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.h4
-rw-r--r--usr.sbin/bsnmpd/modules/snmp_hostres/hostres_storage_tbl.c2
-rw-r--r--usr.sbin/bsnmpd/modules/snmp_hostres/hostres_swrun_tbl.c4
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,