summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-18 23:09:43 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-18 23:10:11 -0800
commit9e9519975fe3a5827b362b8df4a5c69745125a5a (patch)
tree67cf011321b8a7511eb05b34d79f531b141d52c2
parente46b483c58ec3cfc01d2800c069eadc90166eb04 (diff)
Fix "cast discards qualifiers from pointer target type" warnings
ucs2any.c: In function ‘chars_compare’: ucs2any.c:450:2: warning: cast discards qualifiers from pointer target type ucs2any.c:451:2: warning: cast discards qualifiers from pointer target type Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--ucs2any.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ucs2any.c b/ucs2any.c
index 9259951..0904fa0 100644
--- a/ucs2any.c
+++ b/ucs2any.c
@@ -447,8 +447,8 @@ usage(void) {
static int
chars_compare(const void *aa, const void *bb)
{
- int a = *(int *)aa;
- int b = *(int *)bb;
+ int a = *(const int *)aa;
+ int b = *(const int *)bb;
return a - b;
}