From 8fa8ea4c2366bd8ff5222638186df94201b1daa2 Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Sun, 23 Oct 2022 15:48:51 +0200 Subject: include limits.h instead of manually defining LINE_MAX --- src/fnettrace/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fnettrace') diff --git a/src/fnettrace/main.c b/src/fnettrace/main.c index da5ac02c6..56974e79c 100644 --- a/src/fnettrace/main.c +++ b/src/fnettrace/main.c @@ -19,6 +19,7 @@ */ #include "fnettrace.h" #include "radix.h" +#include #include #define MAX_BUF_SIZE (64 * 1024) @@ -190,7 +191,6 @@ static char *print_bw(unsigned units) { return bw_line[units]; } -#define LINE_MAX 200 static inline void adjust_line(char *str, int len, int cols) { if (len > LINE_MAX) // functions such as snprintf truncate the string, and return the length of the untruncated string len = LINE_MAX; -- cgit v1.2.3-54-g00ecf