On Thu, Aug 08, 2013 at 09:01:24PM +0200, Nikola Pajkovsky wrote:
Vitezslav Samel <vitezslav(a)samel.cz> writes:
> Signed-off-by: Vitezslav Samel <vitezslav(a)samel.cz>
> ---
> src/tui/listbox.c | 99 ++++++++++++++++++++++++++++++++++++-----------------
> src/tui/listbox.h | 1 +
> 2 files changed, 68 insertions(+), 32 deletions(-)
>
> diff --git a/src/tui/listbox.c b/src/tui/listbox.c
> index 2a3faa3..bb30ca1 100644
> --- a/src/tui/listbox.c
> +++ b/src/tui/listbox.c
> @@ -12,6 +12,9 @@
> + case KEY_HOME:
> + tx_scroll_listbox(list, SCROLLDOWN, INT_MAX);
> + break;
> + case KEY_END:
> + tx_scroll_listbox(list, SCROLLUP, INT_MAX);
src/tui/listbox.c: In function ‘tx_operate_listbox’:
src/tui/listbox.c:164: error: ‘INT_MAX’ undeclared (first use in this function)
src/tui/listbox.c:164: error: (Each undeclared identifier is reported only once
src/tui/listbox.c:164: error: for each function it appears in.)
make: *** [src/tui/listbox.o] Error 1
and
src/ifstats.c: In function ‘ifstats’:
src/ifstats.c:557: error: ‘INT_MAX’ undeclared (first use in this function)
src/ifstats.c:557: error: (Each undeclared identifier is reported only once
src/ifstats.c:557: error: for each function it appears in.)
make: *** [src/ifstats.o] Error 1
you haven't included limits.h ;) so I will fold into this patch
following lines, ok?
OK.
Vita
diff --git a/src/iptraf-ng-compat.h b/src/iptraf-ng-compat.h
index f17a686..aaa2807 100644
--- a/src/iptraf-ng-compat.h
+++ b/src/iptraf-ng-compat.h
@@ -17,6 +17,7 @@
#include <assert.h>
#include <stddef.h>
#include <poll.h>
+#include <limits.h>
#include <sys/types.h>
#include <sys/stat.h>
--
Nikola