From 3ac7ae201758fe99627fdb2adf783be4063a9b1f Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Wed, 10 Jun 2015 11:34:45 +0300 Subject: [PATCH] lowlevel-blt-bench: make test_entry::testname const We assign string literals to it, so it better be const. Signed-off-by: Pekka Paalanen Reviewed-by: Ben Avison --- test/lowlevel-blt-bench.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/lowlevel-blt-bench.c b/test/lowlevel-blt-bench.c index 993f5db..866dedd 100644 --- a/test/lowlevel-blt-bench.c +++ b/test/lowlevel-blt-bench.c @@ -589,13 +589,13 @@ bench_composite (const char *testname, struct test_entry { - char *testname; - int src_fmt; - int src_flags; - int op; - int mask_fmt; - int mask_flags; - int dst_fmt; + const char *testname; + int src_fmt; + int src_flags; + int op; + int mask_fmt; + int mask_flags; + int dst_fmt; }; typedef struct test_entry test_entry_t; -- 2.7.4