mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 18:14:53 +00:00
Fix bug #52300: Minor type in snmp_opts.h
The comments for MIN and MAX need to be swapped
This commit is contained in:
parent
b953bd0393
commit
4a9e845a53
@ -133,11 +133,11 @@
|
|||||||
|
|
||||||
#if !defined SNMP_MAX_VALUE_SIZE || defined __DOXYGEN__
|
#if !defined SNMP_MAX_VALUE_SIZE || defined __DOXYGEN__
|
||||||
/**
|
/**
|
||||||
* The maximum size of a value.
|
* The minimum size of a value.
|
||||||
*/
|
*/
|
||||||
#define SNMP_MIN_VALUE_SIZE (2 * sizeof(u32_t*)) /* size required to store the basic types (8 bytes for counter64) */
|
#define SNMP_MIN_VALUE_SIZE (2 * sizeof(u32_t*)) /* size required to store the basic types (8 bytes for counter64) */
|
||||||
/**
|
/**
|
||||||
* The minimum size of a value.
|
* The maximum size of a value.
|
||||||
*/
|
*/
|
||||||
#define SNMP_MAX_VALUE_SIZE LWIP_MAX(LWIP_MAX((SNMP_MAX_OCTET_STRING_LEN), sizeof(u32_t)*(SNMP_MAX_OBJ_ID_LEN)), SNMP_MIN_VALUE_SIZE)
|
#define SNMP_MAX_VALUE_SIZE LWIP_MAX(LWIP_MAX((SNMP_MAX_OCTET_STRING_LEN), sizeof(u32_t)*(SNMP_MAX_OBJ_ID_LEN)), SNMP_MIN_VALUE_SIZE)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user