Use oid_class rather than int for OID class.
[yaz-moved-to-github.git] / src / ccltoken.c
index e9c1f34..edf5d34 100644 (file)
@@ -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.14 2007-05-06 20:12:20 adam Exp $
  *
  * 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)
 {
-    const char **a = xmalloc(3 * sizeof(*a));
+    const char **a = (const char **) xmalloc(3 * sizeof(*a));
     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]);
-        xfree(a);
+        xfree((char **)a);
     }
 }