summaryrefslogtreecommitdiff
path: root/perf/cairo-perf.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-06-12 12:32:51 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-06-12 22:28:38 +0100
commita41e1275d28317c88e29b7f142cfc835673c01f5 (patch)
treee03ba47be122d53a66e41e333dfe641ce0b5ce99 /perf/cairo-perf.c
parent6aebde6598c629d667b06e20111106832d139c4d (diff)
downloadcairo-a41e1275d28317c88e29b7f142cfc835673c01f5.tar.gz
[boilerplate] Make array of targets const.
Protect the boilerplate targets from unexpected modifications.
Diffstat (limited to 'perf/cairo-perf.c')
-rw-r--r--perf/cairo-perf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/perf/cairo-perf.c b/perf/cairo-perf.c
index 8fb71b15f..be4368133 100644
--- a/perf/cairo-perf.c
+++ b/perf/cairo-perf.c
@@ -64,7 +64,7 @@ const cairo_perf_case_t perf_cases[];
* loops wouldn't count the real work, just the recording by the
* meta-surface. */
static cairo_bool_t
-target_is_measurable (cairo_boilerplate_target_t *target)
+target_is_measurable (const cairo_boilerplate_target_t *target)
{
switch (target->expected_type) {
case CAIRO_SURFACE_TYPE_IMAGE:
@@ -417,7 +417,7 @@ main (int argc, char *argv[])
perf.times = xmalloc (perf.iterations * sizeof (cairo_perf_ticks_t));
for (i = 0; i < perf.num_targets; i++) {
- cairo_boilerplate_target_t *target = perf.targets[i];
+ const cairo_boilerplate_target_t *target = perf.targets[i];
if (! target_is_measurable (target))
continue;