projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add code to compile CCL qualifiers if specified using <ccl2rpn>.
[yaz-moved-to-github.git]
/
src
/
ccltoken.c
diff --git
a/src/ccltoken.c
b/src/ccltoken.c
index
e9c1f34
..
edf5d34
100644
(file)
--- a/
src/ccltoken.c
+++ b/
src/ccltoken.c
@@
-48,7
+48,7
@@
/* CCL - lexical analysis
* Europagate, 1995
*
/* CCL - lexical analysis
* Europagate, 1995
*
- * $Id: ccltoken.c,v 1.12 2007-04-30 19:55:40 adam Exp $
+ * $Id: ccltoken.c,v 1.14 2007-05-06 20:12:20 adam Exp $
*
* Old Europagate Log:
*
*
* Old Europagate Log:
*
@@
-288,7
+288,7
@@
void ccl_token_del(struct ccl_token *list)
static const char **create_ar(const char *v1, const char *v2)
{
static const char **create_ar(const char *v1, const char *v2)
{
- const char **a = xmalloc(3 * sizeof(*a));
+ const char **a = (const char **) xmalloc(3 * sizeof(*a));
a[0] = xstrdup(v1);
if (v2)
{
a[0] = xstrdup(v1);
if (v2)
{
@@
-307,7
+307,7
@@
static void destroy_ar(const char **a)
int i;
for (i = 0; a[i]; i++)
xfree((char *) a[i]);
int i;
for (i = 0; a[i]; i++)
xfree((char *) a[i]);
- xfree(a);
+ xfree((char **)a);
}
}
}
}