include stdint.h explicitly for UINT16_MAX)
Subsystems (2)
PATCH 1/1 include stdint.h explicitly for UINT16_MAX)
Fixes
| tc_core.c:190:29: error: 'UINT16_MAX' undeclared (first use in this function); did you mean '__INT16_MAX__'?
| if ((sz >> s->size_log) > UINT16_MAX) {
| ^~~~~~~~~~Signed-off-by Khem Raj <[email protected]>
--- tc/tc_core.c | 1 + 1 file changed, 1 insertion(+)
tc/tc_core.c +1 -0
@@ -12,6 +12,7 @@#include <stdio.h> #include <stdlib.h> +#include <stdint.h> #include <unistd.h> #include <syslog.h> #include <fcntl.h>
Signature · 1 line
2.13.0
Stephen Hemminger
AppliedQuoted 6 lines · On Sat, 20 May 2017 14:28:46 -0700 Khem Raj <[email protected]> wrote:
Fixes
| tc_core.c:190:29: error: 'UINT16_MAX' undeclared (first use in this function); did you mean '__INT16_MAX__'? | if ((sz >> s->size_log) > UINT16_MAX) { | ^~~~~~~~~~Signed-off-by Khem Raj <[email protected]>
Applied.