Skip to content

Commit 0a601b8

Browse files
krisztianfeketechenhengqi
authored andcommitted
move timeout to compat header from mountsnoop.c
1 parent 62a8d1d commit 0a601b8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

libbpf-tools/compat.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#include <sys/types.h>
88
#include <linux/bpf.h>
99

10+
#define POLL_TIMEOUT_MS 100
11+
1012
struct bpf_buffer;
1113
struct bpf_map;
1214

libbpf-tools/mountsnoop.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include "btf_helpers.h"
2525
#include "trace_helpers.h"
2626

27-
#define POLL_TIMEOUT_MS 100
2827
#define warn(...) fprintf(stderr, __VA_ARGS__)
2928

3029
/* https://www.gnu.org/software/gnulib/manual/html_node/strerrorname_005fnp.html */

0 commit comments

Comments
 (0)