Skip to content

Commit

Permalink
move timeout to compat header from mountsnoop.c
Browse files Browse the repository at this point in the history
  • Loading branch information
krisztianfekete authored and chenhengqi committed Oct 24, 2022
1 parent 62a8d1d commit 0a601b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions libbpf-tools/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include <sys/types.h>
#include <linux/bpf.h>

#define POLL_TIMEOUT_MS 100

struct bpf_buffer;
struct bpf_map;

Expand Down
1 change: 0 additions & 1 deletion libbpf-tools/mountsnoop.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include "btf_helpers.h"
#include "trace_helpers.h"

#define POLL_TIMEOUT_MS 100
#define warn(...) fprintf(stderr, __VA_ARGS__)

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

0 comments on commit 0a601b8

Please sign in to comment.