]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: simplify endianness check
authorAndrii Nakryiko <andriin@fb.com>
Wed, 29 May 2019 17:36:05 +0000 (10:36 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 29 May 2019 23:23:35 +0000 (01:23 +0200)
commitf713e63ae63d6f368f23abf72457bd6dadb05a6f
tree4a6e09b6c1fc44bf51d12c6dddc923f9f190f58b
parent822266e6d8ece03a6e5d4874c42a612ac4dc114f
libbpf: simplify endianness check

Rewrite endianness check to use "more canonical" way, using
compiler-defined macros, similar to few other places in libbpf. It also
is more obvious and shorter.

Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/lib/bpf/libbpf.c