From 950c94c429e0caa5a6e9fc9a5ddadced62eae12f Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Fri, 27 Dec 2013 13:02:26 +0100 Subject: [PATCH] test: benchmark - use sizeof(struct timeval) Simon Peeters 12:41 PM: I am happy to let you all know that the error is not in the kdbus code, but in the test code which has 16 hardcoded as the size of struct timeval. --- test/test-kdbus-benchmark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-kdbus-benchmark.c b/test/test-kdbus-benchmark.c index 9e3cb2a..163734f 100644 --- a/test/test-kdbus-benchmark.c +++ b/test/test-kdbus-benchmark.c @@ -135,7 +135,7 @@ send_echo_request(struct conn *conn, uint64_t dst_id) item->type = KDBUS_ITEM_PAYLOAD_MEMFD; item->size = KDBUS_ITEM_HEADER_SIZE + sizeof(struct kdbus_memfd); - item->memfd.size = 16; + item->memfd.size = sizeof(struct timeval); item->memfd.fd = memfd; item = KDBUS_ITEM_NEXT(item); -- 2.34.1