* [PATCH] include stdint.h explicitly for UINT16_MAX)
@ 2017-05-20 21:28 Khem Raj
2017-05-22 18:44 ` Stephen Hemminger
0 siblings, 1 reply; 2+ messages in thread
From: Khem Raj @ 2017-05-20 21:28 UTC (permalink / raw)
To: netdev; +Cc: Khem Raj
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 <raj.khem@gmail.com>
---
tc/tc_core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tc/tc_core.c b/tc/tc_core.c
index 7bbe0d7..821b741 100644
--- a/tc/tc_core.c
+++ b/tc/tc_core.c
@@ -12,6 +12,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <stdint.h>
#include <unistd.h>
#include <syslog.h>
#include <fcntl.h>
--
2.13.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] include stdint.h explicitly for UINT16_MAX)
2017-05-20 21:28 [PATCH] include stdint.h explicitly for UINT16_MAX) Khem Raj
@ 2017-05-22 18:44 ` Stephen Hemminger
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2017-05-22 18:44 UTC (permalink / raw)
To: Khem Raj; +Cc: netdev
On Sat, 20 May 2017 14:28:46 -0700
Khem Raj <raj.khem@gmail.com> 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 <raj.khem@gmail.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-05-22 18:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-20 21:28 [PATCH] include stdint.h explicitly for UINT16_MAX) Khem Raj
2017-05-22 18:44 ` Stephen Hemminger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.