diff options
author | Daniel T. Lee <danieltimlee@gmail.com> | 2019-06-16 00:14:47 +0900 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-06-18 00:28:36 +0200 |
commit | 4d18f6de6ac1d85dc0bc85481fb7cabde09e59ae (patch) | |
tree | 5d10b51c6622828cb26e5daad4d5148b8017fbc0 /samples/bpf/sockex2_user.c | |
parent | fa206dccd85d7682d36de4ccca1549e93c501d9d (diff) | |
download | lwn-4d18f6de6ac1d85dc0bc85481fb7cabde09e59ae.tar.gz lwn-4d18f6de6ac1d85dc0bc85481fb7cabde09e59ae.zip |
samples: bpf: refactor header include path
Currently, header inclusion in each file is inconsistent.
For example, "libbpf.h" header is included as multiple ways.
#include "bpf/libbpf.h"
#include "libbpf.h"
Due to commit b552d33c80a9 ("samples/bpf: fix include path
in Makefile"), $(srctree)/tools/lib/bpf/ path had been included
during build, path "bpf/" in header isn't necessary anymore.
This commit removes path "bpf/" in header inclusion.
Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'samples/bpf/sockex2_user.c')
-rw-r--r-- | samples/bpf/sockex2_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/bpf/sockex2_user.c b/samples/bpf/sockex2_user.c index bc257333ad92..6de383ddd08b 100644 --- a/samples/bpf/sockex2_user.c +++ b/samples/bpf/sockex2_user.c @@ -3,7 +3,7 @@ #include <assert.h> #include <linux/bpf.h> #include <bpf/bpf.h> -#include "bpf/libbpf.h" +#include "libbpf.h" #include "sock_example.h" #include <unistd.h> #include <arpa/inet.h> |