From 0f942db2d438ce7c125810a19e29d5637fc7f3f2 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 1 May 2007 12:54:44 +0000 Subject: [PATCH] Added a few casts to throw away const --- src/cclqual.c | 8 ++++---- src/ccltoken.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/cclqual.c b/src/cclqual.c index 67ef7fa..a62ebb1 100644 --- a/src/cclqual.c +++ b/src/cclqual.c @@ -48,7 +48,7 @@ /* CCL qualifiers * Europagate, 1995 * - * $Id: cclqual.c,v 1.10 2007-05-01 12:22:11 adam Exp $ + * $Id: cclqual.c,v 1.11 2007-05-01 12:54:44 adam Exp $ * * Old Europagate Log: * @@ -137,7 +137,7 @@ void ccl_qual_add_special_ar(CCL_bibset bibset, const char *n, int i; for (i = 0; p->values[i]; i++) xfree((char *) p->values[i]); - xfree(p->values); + xfree((char **)p->values); } } else @@ -156,7 +156,7 @@ void ccl_qual_add_special(CCL_bibset bibset, const char *n, const char *cp) char **vlist = xmalloc(no * sizeof(*vlist)); yaz_tok_cfg_t yt = yaz_tok_cfg_create(); int t; - int i = 0; + size_t i = 0; yaz_tok_parse_t tp = yaz_tok_parse_buf(yt, cp); @@ -323,7 +323,7 @@ void ccl_qual_rm(CCL_bibset *b) int i; for (i = 0; sp->values[i]; i++) xfree((char*) sp->values[i]); - xfree(sp->values); + xfree((char **)sp->values); } xfree(sp); } diff --git a/src/ccltoken.c b/src/ccltoken.c index e9c1f34..e4e2b5c 100644 --- a/src/ccltoken.c +++ b/src/ccltoken.c @@ -48,7 +48,7 @@ /* CCL - lexical analysis * Europagate, 1995 * - * $Id: ccltoken.c,v 1.12 2007-04-30 19:55:40 adam Exp $ + * $Id: ccltoken.c,v 1.13 2007-05-01 12:54:44 adam Exp $ * * Old Europagate Log: * @@ -307,7 +307,7 @@ static void destroy_ar(const char **a) int i; for (i = 0; a[i]; i++) xfree((char *) a[i]); - xfree(a); + xfree((char **)a); } } -- 1.7.10.4