[Pixman] [PATCH 3/9] lowlevel-blt-bench: make test_entry::testname const

Pekka Paalanen ppaalanen at gmail.com
Wed Jun 10 06:32:52 PDT 2015


From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>

We assign string literals to it, so it better be const.

Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
---
 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.3.6



More information about the Pixman mailing list