]> granicus.if.org Git - strace/commit
tests/bpf.c: convert TEST_BPF_ macro to a function
authorEugene Syromyatnikov <evgsyr@gmail.com>
Tue, 20 Mar 2018 08:04:17 +0000 (09:04 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 22 Mar 2018 21:35:12 +0000 (21:35 +0000)
commit51f0ef5140e542f5be900b13bfef5b8d4d2d382f
treee44d018fd58997e0a83998090af474395c17379f
parentafb25ea58dcec5ddf3938e7854cdcec7c10c5334
tests/bpf.c: convert TEST_BPF_ macro to a function

As it looks like there's no compelling reason to keep it as a macro and
leaving it so quite complicates modification of the routine and makes
them error-prone.

* tests/bpf.c (TEST_BPF_): Convert it to...
(test_bpf): ...this.  Rename cmd_ to cmd, cmd_str_ to cmd_str,
init_first_ to init_first, print_first_ to print_first, init_attr_
to init_attr, print_attr_ to print_attr.
(TEST_BPF): Call test_bpf_ instead of TEST_BPF_.
tests/bpf.c