]> asedeno.scripts.mit.edu Git - linux.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)
commit12ef5634a855eb642b4d28781526fbd830aa7f7a
tree4a6e09b6c1fc44bf51d12c6dddc923f9f190f58b
parentbe5c5d4e9d8cbdd7fcdcbc45e86e34bc0bd1cefd
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