diff options
author | 2022-10-23 17:31:31 +0200 | |
---|---|---|
committer | 2022-10-23 17:31:31 +0200 | |
commit | 730739d89ed8850858488783f4fe282d2415a635 (patch) | |
tree | 30a4b67b1450fe22831196a435781219b8ba26e7 /src/fnettrace/main.c | |
parent | remove deprecated --shell from man page (diff) | |
parent | check for availability of symbols instead of glibc defines (diff) | |
download | firejail-730739d89ed8850858488783f4fe282d2415a635.tar.gz firejail-730739d89ed8850858488783f4fe282d2415a635.tar.zst firejail-730739d89ed8850858488783f4fe282d2415a635.zip |
Merge pull request #5431 from netblue30/musl_warnings
Fix musl warnings
Diffstat (limited to 'src/fnettrace/main.c')
-rw-r--r-- | src/fnettrace/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ | |||
19 | */ | 19 | */ |
20 | #include "fnettrace.h" | 20 | #include "fnettrace.h" |
21 | #include "radix.h" | 21 | #include "radix.h" |
22 | #include <limits.h> | ||
22 | #include <sys/ioctl.h> | 23 | #include <sys/ioctl.h> |
23 | #define MAX_BUF_SIZE (64 * 1024) | 24 | #define MAX_BUF_SIZE (64 * 1024) |
24 | 25 | ||
@@ -190,7 +191,6 @@ static char *print_bw(unsigned units) { | |||
190 | return bw_line[units]; | 191 | return bw_line[units]; |
191 | } | 192 | } |
192 | 193 | ||
193 | #define LINE_MAX 200 | ||
194 | static inline void adjust_line(char *str, int len, int cols) { | 194 | static inline void adjust_line(char *str, int len, int cols) { |
195 | if (len > LINE_MAX) // functions such as snprintf truncate the string, and return the length of the untruncated string | 195 | if (len > LINE_MAX) // functions such as snprintf truncate the string, and return the length of the untruncated string |
196 | len = LINE_MAX; | 196 | len = LINE_MAX; |