Fix bug #52300: Minor type in snmp_opts.h

The comments for MIN and MAX need to be swapped
This commit is contained in:
Dirk Ziegelmeier 2017-10-28 15:37:22 +02:00
parent b953bd0393
commit 4a9e845a53

View File

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