summaryrefslogtreecommitdiff
path: root/tests/netlink_protocol.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2017-07-03 15:14:54 +0000
committerDmitry V. Levin <ldv@altlinux.org>2017-07-03 15:14:54 +0000
commit005c67a900e69fc016d62ce15da346b0def48f64 (patch)
treee9b143fd58147e15edcaa1b790539d18a23525ff /tests/netlink_protocol.c
parent7d465949e4cf707753d4352e34a5c97632bb2b0c (diff)
downloadstrace-005c67a900e69fc016d62ce15da346b0def48f64.tar.gz
tests: move DEFAULT_STRLEN macro to tests.h
* tests/tests.h [!DEFAULT_STRLEN] (DEFAULT_STRLEN): New macro. * tests/mincore.c (DEFAULT_STRLEN): Remove. * tests/mmsg_name.c: Likewise. * tests/msg_control.c: Likewise. * tests/netlink_protocol.c: Likewise. * tests/nlattr.c: Likewise. * tests/nlattr_inet_diag_msg.c: Likewise. * tests/nlattr_netlink_diag_msg.c: Likewise. * tests/nlattr_unix_diag_msg.c: Likewise. * tests/printstr.c: Likewise. * tests/xattr.c: Likewise. * tests/execve.c: Likewise. (main): Initialize str_a and str_b arrays at run time. * tests/execveat.c: Likewise. Suggested-by: JingPiao Chen <chenjingpiao@gmail.com>
Diffstat (limited to 'tests/netlink_protocol.c')
-rw-r--r--tests/netlink_protocol.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/netlink_protocol.c b/tests/netlink_protocol.c
index d0479805e..f09dd9a96 100644
--- a/tests/netlink_protocol.c
+++ b/tests/netlink_protocol.c
@@ -169,7 +169,6 @@ send_query(const int fd)
(unsigned) sizeof(*reqs), sprintrc(rc));
/* abbreviated output */
-# define DEFAULT_STRLEN 32
# define ABBREV_LEN (DEFAULT_STRLEN + 1)
const unsigned int msg_len = sizeof(struct nlmsghdr) * ABBREV_LEN;
struct nlmsghdr *const msgs = tail_alloc(msg_len);