summaryrefslogtreecommitdiffhomepage
path: root/ir/tv
diff options
context:
space:
mode:
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>2015-06-05 18:35:34 +0200
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>2015-06-05 18:55:03 +0200
commit50c26e05825101a7afe4217357bc58f4914b90ef (patch)
treedea390043ca3b02bace2f5112b4962a3c98b9387 /ir/tv
parentf9aca7aa9cff4854c2375ec9e09ab3b0643956e2 (diff)
Constify tarval parameter.
Diffstat (limited to 'ir/tv')
-rw-r--r--ir/tv/tv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/tv/tv.c b/ir/tv/tv.c
index 04cf9fa..f0a946c 100644
--- a/ir/tv/tv.c
+++ b/ir/tv/tv.c
@@ -67,7 +67,7 @@ static int cmp_tv(const void *p1, const void *p2, size_t n)
return memcmp(tv1->value, tv2->value, tv1->length);
}
-static ir_tarval *identify_tarval(ir_tarval *tv)
+static ir_tarval *identify_tarval(const ir_tarval *tv)
{
unsigned hash = hash_tv(tv);
return set_insert(ir_tarval, tarvals, tv, sizeof(ir_tarval) + tv->length,