diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-18 23:25:16 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-18 23:25:16 -0800 |
commit | 1450186652cb9d2efe55c8da7cb64996eddd34c7 (patch) | |
tree | bc42c7da91282c15eb47d2ab4b92f7d112ce6462 | |
parent | 7aa7b34491de534da56d637552ee86f94f038cc3 (diff) |
closeness_cmp: maintain constness when casting pointers
create.c: In function 'closeness_cmp':
create.c:224:5: warning: cast discards qualifiers from pointer target type
create.c:224:5: warning: cast discards qualifiers from pointer target type
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/create.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/create.c b/src/create.c index dc09370..98678d8 100644 --- a/src/create.c +++ b/src/create.c @@ -221,7 +221,7 @@ typedef struct { static int closeness_cmp(const void *a, const void *b) { - CloseColor *x = (CloseColor *) a, *y = (CloseColor *) b; + const CloseColor *x = (const CloseColor *) a, *y = (const CloseColor *) b; /* cast to int as qsort requires */ return (int) (x->closeness - y->closeness); |