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
This commit is contained in:
Elyes Haouas 2023-06-01 17:41:31 -06:00 committed by Warner Losh
parent 8c9946be52
commit de8b490010
4 changed files with 8 additions and 8 deletions

View file

@ -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
*/

View file

@ -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);

View file

@ -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)
/*

View file

@ -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,